From be02dc5ff10a1cdb470e459bb082f155246544d1 Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Fri, 14 Oct 2011 00:35:23 +0200 Subject: [PATCH] create object directory befor accessing it Signed-off-by: Steven Armstrong --- lib/cdist/test/explorer/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/cdist/test/explorer/__init__.py b/lib/cdist/test/explorer/__init__.py index 96206ae0..3b3a7e98 100644 --- a/lib/cdist/test/explorer/__init__.py +++ b/lib/cdist/test/explorer/__init__.py @@ -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)