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