set up class python code example
Example 1: class python
class MyClass(object):
def __init__(self, x):
self.x = x
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