From b1efc27b39b02ae43cd43156ad82e8a61022023c Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Mon, 10 Oct 2011 10:00:42 +0200 Subject: [PATCH] test for Object requirements Signed-off-by: Steven Armstrong --- lib/cdist/test/object/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/cdist/test/object/__init__.py b/lib/cdist/test/object/__init__.py index a9edfdd0..910a75e1 100644 --- a/lib/cdist/test/object/__init__.py +++ b/lib/cdist/test/object/__init__.py @@ -86,4 +86,8 @@ class ObjectTestCase(unittest.TestCase): expected_parameters = {'planet': 'Saturn', 'name': 'Prometheus'} self.assertEqual(self.cdist_object.parameters, expected_parameters) + def test_requirements(self): + expected = [] + self.assertEqual(list(self.cdist_object.requirements), expected) + #suite = unittest.TestLoader().loadTestsFromTestCase(ObjectTestCase)