mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
25 lines
672 B
Python
25 lines
672 B
Python
# Import salt libs
|
|
import integration
|
|
|
|
class StateModuleTest(integration.ModuleCase):
|
|
'''
|
|
Validate the test module
|
|
'''
|
|
def test_show_highstate(self):
|
|
'''
|
|
state.show_highstate
|
|
'''
|
|
high = self.run_function('state.show_highstate')
|
|
self.assertTrue(isinstance(high, dict))
|
|
self.assertTrue('/testfile' in high)
|
|
self.assertEqual(high['/testfile']['__env__'], 'base')
|
|
|
|
def test_show_lowstate(self):
|
|
'''
|
|
state.show_lowstate
|
|
'''
|
|
low = self.run_function('state.show_lowstate')
|
|
self.assertTrue(isinstance(low, list))
|
|
self.assertTrue(isinstance(low[0], dict))
|
|
|