test for code_remote
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
93ede2a3be
commit
6f7528c411
1 changed files with 9 additions and 0 deletions
|
@ -63,6 +63,8 @@ class ObjectTestCase(unittest.TestCase):
|
|||
self.cdist_object.prepared = False
|
||||
self.cdist_object.ran = False
|
||||
self.cdist_object.source = []
|
||||
self.cdist_object.code_local = ''
|
||||
self.cdist_object.code_remote = ''
|
||||
|
||||
def test_name(self):
|
||||
self.assertEqual(self.cdist_object.name, '__third/moon')
|
||||
|
@ -143,3 +145,10 @@ class ObjectTestCase(unittest.TestCase):
|
|||
def test_code_local_after_changing(self):
|
||||
self.cdist_object.code_local = 'Hello World'
|
||||
self.assertEqual(self.cdist_object.code_local, 'Hello World')
|
||||
|
||||
def test_code_remote(self):
|
||||
self.assertEqual(self.cdist_object.code_remote, '')
|
||||
|
||||
def test_code_remote_after_changing(self):
|
||||
self.cdist_object.code_remote = 'Hello World'
|
||||
self.assertEqual(self.cdist_object.code_remote, 'Hello World')
|
||||
|
|
Loading…
Reference in a new issue