def test_add_fails_with_float_argument(self): with self.assertRaises(TypeError): add(1.1, 2)
def test_add(self): self.assertEqual(3, add(1, 2))