test types in python3 code example
Example 1: identify object python
print(type('string'))
# <class 'str'>
print(type('string') is str)
# True
Example 2: self.assertequal python
'''
In other words, assertEquals is a function to check if two variables are equal, for purposes of automated testing:
'''
def assertEquals(var1, var2):
if var1 == var2:
return True
else:
return False