forked from ungleich-public/cdist
/ran/done/
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
02de396905
commit
4f398a834f
1 changed files with 6 additions and 6 deletions
|
@ -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), [])
|
||||||
|
|
Loading…
Reference in a new issue