From abf318ae90b827b2fc99555b386c8321a38e0cc0 Mon Sep 17 00:00:00 2001
From: Steven Armstrong <steven@icarus.ethz.ch>
Date: Mon, 10 Oct 2011 09:47:06 +0200
Subject: [PATCH] test and fixtures for Object parameters

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
---
 lib/cdist/test/object/__init__.py                             | 4 ++++
 .../object/fixtures/object/__third/moon/.cdist/parameter/name | 1 +
 .../fixtures/object/__third/moon/.cdist/parameter/planet      | 1 +
 3 files changed, 6 insertions(+)
 create mode 100644 lib/cdist/test/object/fixtures/object/__third/moon/.cdist/parameter/name
 create mode 100644 lib/cdist/test/object/fixtures/object/__third/moon/.cdist/parameter/planet

diff --git a/lib/cdist/test/object/__init__.py b/lib/cdist/test/object/__init__.py
index cd6e7f04..a9edfdd0 100644
--- a/lib/cdist/test/object/__init__.py
+++ b/lib/cdist/test/object/__init__.py
@@ -82,4 +82,8 @@ class ObjectTestCase(unittest.TestCase):
     def test_explorer_path(self):
         self.assertEqual(self.cdist_object.explorer_path, '__third/moon/.cdist/explorer')
 
+    def test_parameters(self):
+        expected_parameters = {'planet': 'Saturn', 'name': 'Prometheus'}
+        self.assertEqual(self.cdist_object.parameters, expected_parameters)
+
 #suite = unittest.TestLoader().loadTestsFromTestCase(ObjectTestCase)
diff --git a/lib/cdist/test/object/fixtures/object/__third/moon/.cdist/parameter/name b/lib/cdist/test/object/fixtures/object/__third/moon/.cdist/parameter/name
new file mode 100644
index 00000000..4129a761
--- /dev/null
+++ b/lib/cdist/test/object/fixtures/object/__third/moon/.cdist/parameter/name
@@ -0,0 +1 @@
+Prometheus
diff --git a/lib/cdist/test/object/fixtures/object/__third/moon/.cdist/parameter/planet b/lib/cdist/test/object/fixtures/object/__third/moon/.cdist/parameter/planet
new file mode 100644
index 00000000..8e6ee422
--- /dev/null
+++ b/lib/cdist/test/object/fixtures/object/__third/moon/.cdist/parameter/planet
@@ -0,0 +1 @@
+Saturn