summaryrefslogtreecommitdiffstats
path: root/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testinterfaces.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-12-18 11:20:47 -0600
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-12-18 11:21:11 -0600
commit05122a6f04fbbff9838816f6f713e483811c8ed5 (patch)
treedc367daf0130ddb2ef95faa6ec41f97f09f90f4b /testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testinterfaces.py
parent1a4148626871df43d2d207db551536813868713e (diff)
downloadbcfg2-05122a6f04fbbff9838816f6f713e483811c8ed5.tar.gz
bcfg2-05122a6f04fbbff9838816f6f713e483811c8ed5.tar.bz2
bcfg2-05122a6f04fbbff9838816f6f713e483811c8ed5.zip
added unit tests for Rules and Defaults
Diffstat (limited to 'testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testinterfaces.py')
-rw-r--r--testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testinterfaces.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testinterfaces.py b/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testinterfaces.py
index 343f088b3..35f4e0700 100644
--- a/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testinterfaces.py
+++ b/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testinterfaces.py
@@ -328,15 +328,25 @@ class TestDecision(Bcfg2TestCase):
class TestStructureValidator(Bcfg2TestCase):
+ test_obj = StructureValidator
+
+ def get_obj(self):
+ return self.test_obj()
+
def test_validate_structures(self):
- sv = StructureValidator()
+ sv = self.get_obj()
self.assertRaises(NotImplementedError,
sv.validate_structures, None, None)
class TestGoalValidator(Bcfg2TestCase):
+ test_obj = GoalValidator
+
+ def get_obj(self):
+ return self.test_obj()
+
def test_validate_goals(self):
- gv = GoalValidator()
+ gv = self.get_obj()
self.assertRaises(NotImplementedError,
gv.validate_goals, None, None)