From 17d9d7201b3cce6236328a7b42138627edc3da79 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Mon, 22 Oct 2012 08:23:49 -0400 Subject: fixed some POSIX unit tests --- .../Testsrc/Testlib/TestServer/TestPlugin/Testinterfaces.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'testsuite/Testsrc/Testlib/TestServer/TestPlugin') diff --git a/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testinterfaces.py b/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testinterfaces.py index ace509057..9a064663e 100644 --- a/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testinterfaces.py +++ b/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testinterfaces.py @@ -326,11 +326,13 @@ class TestGoalValidator(Bcfg2TestCase): gv.validate_goals, None, None) -class TestVersion(Bcfg2TestCase): +class TestVersion(TestPlugin): test_obj = Version - - def get_obj(self): - return self.test_obj(datastore) + + def get_obj(self, core=None): + if core is None: + core = Mock() + return self.test_obj(core, datastore) def test_get_revision(self): d = self.get_obj() -- cgit v1.2.3-1-g7c22