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