Add non recurse test

This commit is contained in:
Thomas S Hatch 2012-06-15 22:41:36 -06:00
parent f176e86aec
commit b13f723ed6

View file

@ -35,6 +35,13 @@ class StateModuleTest(integration.ModuleCase):
err = self.run_function('state.sls', mods='recurse_fail')
self.assertIn('recursive', err[0])
def test_no_recurse(self):
'''
state.show_sls used to catch a recursive ref
'''
sls = self.run_function('state.show_sls', mods='recurse_ok')
self.assertIn('snmpd', sls)
if __name__ == "__main__":
loader = TestLoader()
tests = loader.loadTestsFromTestCase(StateModuleTest)