Ejemplo n.º 1
0
 def test_lambda_with_closure(self):
   """Tests that the closure of a function is preserved."""
   self.assertEquals(
       'closure: abc',
       loads(dumps(module_test.get_lambda_with_closure('abc')))())
Ejemplo n.º 2
0
 def test_lambda_with_closure(self):
     """Tests that the closure of a function is preserved."""
     self.assertEqual(
         'closure: abc',
         loads(dumps(module_test.get_lambda_with_closure('abc')))())