def test_add_1_and_4_is_5(self): self.assertEqual(add(1, 4), 5)
def test_add_5_and_10(self): self.assertEqual(add(5, 10), 15)
def test_add_2_and_3_is_5(self): self.assertEqual(add(3, 3), 6)
import extension extension.hello("world") print(extension.add(1, 2)) def callmeback(number): print("callback %d" % number) extension.callback(callmeback)
def test_add(self): self.assertEqual(add(5, 6), 11)
def test_add_3_and_6_is_9(self): self.assertEqual(add(3, 6), 9)
def test_add_1_and_5_is_6(self): self.assertEqual(add(1, 5), 6)