예제 #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')))())
예제 #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')))())