def test_add_numbers(self): self.assertEqual(add_numbers(1, 1), 2) self.assertEqual(add_numbers(1, -1), 0) self.assertEqual(add_numbers(0, 0), 0) self.assertEqual(add_numbers(-1, -1), -2) self.assertEqual(add_numbers(1.0, 1), 2) self.assertEqual(add_numbers(1.1, 1.1), 2.2) self.assertEqual(add_numbers(40, 2), 42)
def test_call_sample2(): from app import add_numbers result = add_numbers(13, 6) assert result == 19
def test_add_numbers(): """Make sure that it all adds up""" assert add_numbers(5, 8) == 13
def test_add_numbers(self): first_number = 10 second_number = 5 result = app.add_numbers(first_number, second_number) self.assertEqual(result, 15)