tests for Object source as list
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
d7adff4e21
commit
45ff8f727f
1 changed files with 4 additions and 4 deletions
|
@ -62,7 +62,7 @@ class ObjectTestCase(unittest.TestCase):
|
||||||
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
|
self.cdist_object.ran = False
|
||||||
self.cdist_object.source = ""
|
self.cdist_object.source = []
|
||||||
|
|
||||||
def test_name(self):
|
def test_name(self):
|
||||||
self.assertEqual(self.cdist_object.name, '__third/moon')
|
self.assertEqual(self.cdist_object.name, '__third/moon')
|
||||||
|
@ -118,8 +118,8 @@ class ObjectTestCase(unittest.TestCase):
|
||||||
self.assertTrue(self.cdist_object.ran)
|
self.assertTrue(self.cdist_object.ran)
|
||||||
|
|
||||||
def test_source(self):
|
def test_source(self):
|
||||||
self.assertEqual(self.cdist_object.source, '')
|
self.assertEqual(list(self.cdist_object.source), [])
|
||||||
|
|
||||||
def test_source_after_changing(self):
|
def test_source_after_changing(self):
|
||||||
self.cdist_object.source = '/path/to/manifest'
|
self.cdist_object.source = ['/path/to/manifest']
|
||||||
self.assertEqual(self.cdist_object.source, '/path/to/manifest')
|
self.assertEqual(list(self.cdist_object.source), ['/path/to/manifest'])
|
||||||
|
|
Loading…
Reference in a new issue