test and fixtures for Object parameters

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2011-10-10 09:47:06 +02:00
parent 88a1e34f30
commit abf318ae90
3 changed files with 6 additions and 0 deletions

View file

@ -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)

View file

@ -0,0 +1 @@
Prometheus