Traceback (most recent call last): File "/home/runner/unit_tests.py", line 27, in test_handles_custom_input self.assertEqual(product_of_values({'z':2,'y':2,'x':2,'w':2}),16) AssertionError: None != 16 code example
Example: 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