Ejemplo n.º 1
0
 def test_simple_retrieval(self):
     """test retrieval of function in argument string."""
     function = massedit.get_function('tests:dutch_is_guido')
     # Functions are not the same but the code is.
     self.assertEqual(dutch_is_guido.__code__, function.__code__)
Ejemplo n.º 2
0
 def test_simple_retrieval(self):
     """Retrieve remove_module in the tests module."""
     function = massedit.get_function('tests:remove_module')
     # Functions are not the same but the code is.
     self.assertEqual(remove_module.__code__, function.__code__)
Ejemplo n.º 3
0
 def test_simple_retrieval(self):
     """test retrieval of function in argument string."""
     function = massedit.get_function('tests:dutch_is_guido')
     # Functions are not the same but the code is.
     self.assertEqual(dutch_is_guido.__code__, function.__code__)