コード例 #1
0
ファイル: tests.py プロジェクト: aliabbasjp/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__)
コード例 #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__)