replace filter_module with load_python_module

This commit is contained in:
debugtalk
2018-08-09 00:23:09 +08:00
parent fb46187cf2
commit db3e1a2ae9
5 changed files with 54 additions and 30 deletions

View File

@@ -172,6 +172,12 @@ class TestModuleLoader(unittest.TestCase):
"tests.debugtalk"
)
def test_filter_module_functions(self):
module_mapping = loader.load_python_module(loader)
functions_dict = module_mapping["functions"]
self.assertIn("load_python_module", functions_dict)
self.assertNotIn("is_py3", functions_dict)
def test_load_debugtalk_module(self):
imported_module_items = loader.load_debugtalk_module()
self.assertEqual(imported_module_items["functions"], {})