create object directory befor accessing it

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2011-10-14 00:35:23 +02:00
parent 453adefc91
commit be02dc5ff1
1 changed files with 1 additions and 0 deletions

View File

@ -95,6 +95,7 @@ class ExplorerClassTestCase(unittest.TestCase):
def test_transfer_object_parameters(self):
cdist_type = core.Type(self.local.type_path, '__test_type')
cdist_object = core.Object(cdist_type, self.local.object_path, 'whatever')
cdist_object.create()
cdist_object.parameters = {'first': 'first value', 'second': 'second value'}
self.explorer.transfer_object_parameters(cdist_object)
source = os.path.join(self.local.object_path, cdist_object.parameter_path)