test for Object ran
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
7855a485b6
commit
6de7bd3377
1 changed files with 8 additions and 1 deletions
|
@ -61,6 +61,7 @@ class ObjectTestCase(unittest.TestCase):
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
self.cdist_object.changed = False
|
self.cdist_object.changed = False
|
||||||
self.cdist_object.prepared = False
|
self.cdist_object.prepared = False
|
||||||
|
self.cdist_object.ran = False
|
||||||
|
|
||||||
def test_name(self):
|
def test_name(self):
|
||||||
self.assertEqual(self.cdist_object.name, '__third/moon')
|
self.assertEqual(self.cdist_object.name, '__third/moon')
|
||||||
|
@ -107,4 +108,10 @@ class ObjectTestCase(unittest.TestCase):
|
||||||
def test_prepared_after_changing(self):
|
def test_prepared_after_changing(self):
|
||||||
self.cdist_object.prepared = True
|
self.cdist_object.prepared = True
|
||||||
self.assertTrue(self.cdist_object.prepared)
|
self.assertTrue(self.cdist_object.prepared)
|
||||||
#suite = unittest.TestLoader().loadTestsFromTestCase(ObjectTestCase)
|
|
||||||
|
def test_ran(self):
|
||||||
|
self.assertFalse(self.cdist_object.ran)
|
||||||
|
|
||||||
|
def test_ran_after_changing(self):
|
||||||
|
self.cdist_object.ran = True
|
||||||
|
self.assertTrue(self.cdist_object.ran)
|
||||||
|
|
Loading…
Reference in a new issue