diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-09-06 08:21:35 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-09-06 08:21:35 -0400 |
commit | 460a1c2a0f1caa7eb2043ad10ba64b8b55e43844 (patch) | |
tree | 7ab60acc1698d19a49d0914361634239005a885f /testsuite/Testsrc/Testlib/TestServer/TestPlugins | |
parent | 9b10ec5537630fb38f8ece6de146e1b884b58ddf (diff) | |
download | bcfg2-460a1c2a0f1caa7eb2043ad10ba64b8b55e43844.tar.gz bcfg2-460a1c2a0f1caa7eb2043ad10ba64b8b55e43844.tar.bz2 bcfg2-460a1c2a0f1caa7eb2043ad10ba64b8b55e43844.zip |
documented base plugin interfaces
Diffstat (limited to 'testsuite/Testsrc/Testlib/TestServer/TestPlugins')
-rw-r--r-- | testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProbes.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProbes.py b/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProbes.py index 7673c73d2..4d5aea936 100644 --- a/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProbes.py +++ b/testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProbes.py @@ -199,6 +199,11 @@ group-specific""" class TestProbes(TestProbing, TestConnector, TestDatabaseBacked): test_obj = Probes + def get_obj(self, core=None): + if core is None: + core = Mock() + return self.test_obj(core, datastore) + def get_test_probedata(self): test_xdata = lxml.etree.Element("test") lxml.etree.SubElement(test_xdata, "test", foo="foo") @@ -460,8 +465,6 @@ text @patch("Bcfg2.Server.Plugins.Probes.ProbeSet.get_probe_data") def test_GetProbes(self, mock_get_probe_data): - TestProbing.test_GetProbes(self) - probes = self.get_probes_object() metadata = Mock() probes.GetProbes(metadata) @@ -470,8 +473,6 @@ text @patch("Bcfg2.Server.Plugins.Probes.Probes.write_data") @patch("Bcfg2.Server.Plugins.Probes.Probes.ReceiveDataItem") def test_ReceiveData(self, mock_ReceiveDataItem, mock_write_data): - TestProbing.test_ReceiveData(self) - # we use a simple (read: bogus) datalist here to make this # easy to test datalist = ["a", "b", "c"] |