示例#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__)