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-30 09:11:54 -0400 |
commit | 17d9d7201b3cce6236328a7b42138627edc3da79 (patch) | |
tree | b7fa2e7a1c3bf91457c7d427ce42c4d3be8b9987 | |
parent | 63a5b62dba190007634e1e0f2f834057b63aeafd (diff) | |
download | bcfg2-17d9d7201b3cce6236328a7b42138627edc3da79.tar.gz bcfg2-17d9d7201b3cce6236328a7b42138627edc3da79.tar.bz2 bcfg2-17d9d7201b3cce6236328a7b42138627edc3da79.zip |
fixed some POSIX unit tests
-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() |