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