Migrated test.integration.states.supervisord to use SaltReturnAssertsMixIn.

This commit is contained in:
Pedro Algarvio 2012-12-07 17:03:24 +00:00
parent cbea092b0c
commit e03a2606a1

View File

@ -22,10 +22,9 @@ class SupervisordTest(integration.ModuleCase):
supervisord.running restart = False
'''
ret = self.run_state(
'supervisord.running', name='null_service', test=True)
self.assertTrue(ret)
self.assertEqual(self.state_result(ret), False)
'supervisord.running', name='null_service', test=True
)
self.assertSaltFalseReturn(ret)
def test_restart(self):
'''
@ -33,17 +32,15 @@ class SupervisordTest(integration.ModuleCase):
'''
ret = self.run_state(
'supervisord.running', name='null_service', restart=True,
test=True)
self.assertTrue(ret)
self.assertEqual(self.state_result(ret), False)
test=True
)
self.assertSaltFalseReturn(ret)
def test_stop(self):
'''
supervisord.dead
'''
ret = self.run_state(
'supervisord.dead', name='null_service', test=True)
self.assertTrue(ret)
self.assertEqual(self.state_result(ret), False)
'supervisord.dead', name='null_service', test=True
)
self.assertSaltFalseReturn(ret)