Skip to content

Commit

Permalink
Add sys module tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thatch45 committed Mar 28, 2012
1 parent 7d005f9 commit 5b3b5bb
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/integration/modules/sysmod.py
@@ -0,0 +1,25 @@
# Import python libs
import os

# Import salt libs
import integration

class SysModuleTest(integration.ModuleCase):
'''
Validate the sys module
'''
def test_list_functions(self):
'''
sys.list_functions
'''
funcs = self.run_function('sys.list_functions')
self.assertTrue('hosts.list_hosts' in funcs)
self.assertTrue('pkg.install' in funcs)

def test_list_modules(self):
'''
sys.list_moduels
'''
mods = self.run_function('sys.list_modules')
self.assertTrue('hosts' in mods)
self.assertTrue('pkg' in mods)

0 comments on commit 5b3b5bb

Please sign in to comment.