From adff0df212bd3d7eabc3717a78a7f3b7cfa78945 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Mon, 4 Feb 2013 13:17:47 -0500 Subject: fixed StructFile Match() unit test --- testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testsuite/Testsrc') diff --git a/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py b/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py index 6dbdc7667..22c53c63e 100644 --- a/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py +++ b/testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py @@ -747,7 +747,7 @@ class TestStructFile(TestXMLFileBacked): def match_rv(el, _): if el.tag not in ['Client', 'Group']: return [el] - elif x.get("include") == "true": + elif el.get("include") == "true": return el.getchildren() else: return [] @@ -789,7 +789,7 @@ class TestStructFile(TestXMLFileBacked): self.assertXMLEqual(actual, expected) @patch("Bcfg2.Server.Plugin.helpers.%s._xml_match" % test_obj.__name__) - def test_Match(self, mock_xml_match): + def test_XMLMatch(self, mock_xml_match): sf = self.get_obj() metadata = Mock() -- cgit v1.2.3-1-g7c22