salt/tests/integration/states/compiler.py

31 lines
672 B
Python
Raw Normal View History

# -*- coding: utf-8 -*-
2012-05-17 05:00:01 +00:00
'''
tests for host state
'''
# Import Salt Testing libs
from salttesting.helpers import ensure_in_syspath
ensure_in_syspath('../../')
# Import salt libs
import integration
2012-05-17 05:00:01 +00:00
2012-05-29 16:40:20 +00:00
2012-05-17 05:00:01 +00:00
class CompileTest(integration.ModuleCase):
'''
Validate the state compiler
'''
def test_multi_state(self):
'''
Test the error with multiple states of the same type
'''
ret = self.run_function('state.sls', mods='fuzz.multi_state')
# Verify that the return is a list, aka, an error
2012-07-23 19:00:54 +00:00
self.assertIsInstance(ret, list)
if __name__ == '__main__':
from integration import run_tests
run_tests(CompileTest)