예제 #1
0
 def test_second_bad(self):
     with self.assertRaises(TypeError):
         second.secondary(1)
     with self.assertRaises(TypeError):
         second.secondary(lambda x: x+1)
예제 #2
0
 def test_second_good(self):
     self.assertEqual(second.secondary("joel"),"your word is: joel")