From 460a1c2a0f1caa7eb2043ad10ba64b8b55e43844 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Thu, 6 Sep 2012 08:21:35 -0400 Subject: documented base plugin interfaces --- testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProbes.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'testsuite/Testsrc/Testlib/TestServer/TestPlugins/TestProbes.py') 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"] -- cgit v1.2.3-1-g7c22