add assertion for test_transfer_object_parameters
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
20fae8b52b
commit
910de0579c
1 changed files with 3 additions and 1 deletions
|
@ -80,11 +80,13 @@ class ExplorerClassTestCase(unittest.TestCase):
|
||||||
self.explorer.transfer_type_explorers(cdist_type)
|
self.explorer.transfer_type_explorers(cdist_type)
|
||||||
|
|
||||||
def test_transfer_object_parameters(self):
|
def test_transfer_object_parameters(self):
|
||||||
# FIXME: test result
|
|
||||||
cdist_type = core.Type(self.local.type_path, '__test_type')
|
cdist_type = core.Type(self.local.type_path, '__test_type')
|
||||||
cdist_object = core.Object(cdist_type, self.local.object_path, 'whatever')
|
cdist_object = core.Object(cdist_type, self.local.object_path, 'whatever')
|
||||||
cdist_object.parameters = {'first': 'first value', 'second': 'second value'}
|
cdist_object.parameters = {'first': 'first value', 'second': 'second value'}
|
||||||
self.explorer.transfer_object_parameters(cdist_object)
|
self.explorer.transfer_object_parameters(cdist_object)
|
||||||
|
source = os.path.join(self.local.object_path, cdist_object.parameter_path)
|
||||||
|
destination = os.path.join(self.remote.object_path, cdist_object.parameter_path)
|
||||||
|
self.assertEqual(os.listdir(source), os.listdir(destination))
|
||||||
|
|
||||||
def test_run_type_explorer(self):
|
def test_run_type_explorer(self):
|
||||||
cdist_type = core.Type(self.local.type_path, '__test_type')
|
cdist_type = core.Type(self.local.type_path, '__test_type')
|
||||||
|
|
Loading…
Reference in a new issue