diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-10-22 08:23:49 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-10-22 12:23:19 -0400 |
commit | 20cf8f21bc7043de0070644cfb434ce77e24d28c (patch) | |
tree | e51718c51b6cecc4fba4850e775c945ff4eb37f2 /testsuite/Testsrc/Testlib/TestServer | |
parent | b492fd38950599f4414d0cbd8b1b03b162503aa6 (diff) | |
download | bcfg2-20cf8f21bc7043de0070644cfb434ce77e24d28c.tar.gz bcfg2-20cf8f21bc7043de0070644cfb434ce77e24d28c.tar.bz2 bcfg2-20cf8f21bc7043de0070644cfb434ce77e24d28c.zip |
fixed some POSIX unit tests
Diffstat (limited to 'testsuite/Testsrc/Testlib/TestServer')
-rw-r--r-- | testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testinterfaces.py | 10 |
1 files changed, 6 insertions, 4 deletions
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() |