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