From 05122a6f04fbbff9838816f6f713e483811c8ed5 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Tue, 18 Dec 2012 11:20:47 -0600 Subject: added unit tests for Rules and Defaults --- .../Testlib/TestServer/TestPlugin/Testinterfaces.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testinterfaces.py') 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) -- cgit v1.2.3-1-g7c22