Beispiel #1
0
 def test_lambda_statement_is_function(self):
     self.assertTrue(isFunction('f = lambda x: x*x'))
Beispiel #2
0
 def test_name_binding_is_not_a_function(self):
     self.assertFalse(isFunction("a = 1"))
Beispiel #3
0
 def test_def_statement_is_function(self):
     self.assertTrue(isFunction('def f():\n return True\n'))