def test_lambda_is_callable(self): with self.assertRaises(exc.ArgumentError) as ex: self.compile(Lambda(1)) self.assertEqual(str(ex.exception), 'func must be callable')