예제 #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__)
예제 #2
0
파일: tests.py 프로젝트: myint/massedit
 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__)
예제 #3
0
파일: tests.py 프로젝트: elmotec/massedit
 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__)