Some more sysmod testing improvements.

This commit is contained in:
Pedro Algarvio 2013-06-27 23:15:36 +01:00
parent 276858d619
commit 576a5a4b78

View File

@ -20,6 +20,16 @@ class SysModuleTest(integration.ModuleCase):
self.assertNotIn('sys.doc', funcs)
self.assertIn('sysctl.get', funcs)
# Just sys
funcs = self.run_function('sys.list_functions', ('sys.',))
self.assertNotIn('sysctl.get', funcs)
self.assertIn('sys.doc', funcs)
# Staring with sys
funcs = self.run_function('sys.list_functions', ('sys',))
self.assertNotIn('sysctl.get', funcs)
self.assertIn('sys.doc', funcs)
def test_list_modules(self):
'''
sys.list_moduels