Traceback (most recent call last): File "/home/runner/unit_tests.py", line 24, in test_handles_given_input self.assertEqual(product_of_values(test_dictionary),180) AssertionError: None != 180 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