/ran/done/

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2011-10-19 14:53:06 +02:00
parent 02de396905
commit 4f398a834f

View file

@ -167,17 +167,17 @@ class ObjectTestCase(unittest.TestCase):
def test_state(self): def test_state(self):
self.assertEqual(self.cdist_object.state, '') self.assertEqual(self.cdist_object.state, '')
def test_state_ran(self): def test_state_prepared(self):
self.cdist_object.state = core.Object.STATE_RAN self.cdist_object.state = core.Object.STATE_PREPARED
self.assertEqual(self.cdist_object.state, core.Object.STATE_RAN) self.assertEqual(self.cdist_object.state, core.Object.STATE_PREPARED)
def test_state_running(self): def test_state_running(self):
self.cdist_object.state = core.Object.STATE_RUNNING self.cdist_object.state = core.Object.STATE_RUNNING
self.assertEqual(self.cdist_object.state, core.Object.STATE_RUNNING) self.assertEqual(self.cdist_object.state, core.Object.STATE_RUNNING)
def test_state_prepared(self): def test_state_done(self):
self.cdist_object.state = core.Object.STATE_PREPARED self.cdist_object.state = core.Object.STATE_DONE
self.assertEqual(self.cdist_object.state, core.Object.STATE_PREPARED) self.assertEqual(self.cdist_object.state, core.Object.STATE_DONE)
def test_source(self): def test_source(self):
self.assertEqual(list(self.cdist_object.source), []) self.assertEqual(list(self.cdist_object.source), [])