diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-02-04 13:17:47 -0500 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-02-04 13:17:47 -0500 |
commit | adff0df212bd3d7eabc3717a78a7f3b7cfa78945 (patch) | |
tree | 0f8c460f041dd16999ca2120e14a65a35c8313e8 /testsuite | |
parent | b9ec1119cbaa1ca470c1f49273b0cd540c7cd36b (diff) | |
download | bcfg2-adff0df212bd3d7eabc3717a78a7f3b7cfa78945.tar.gz bcfg2-adff0df212bd3d7eabc3717a78a7f3b7cfa78945.tar.bz2 bcfg2-adff0df212bd3d7eabc3717a78a7f3b7cfa78945.zip |
fixed StructFile Match() unit test
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/Testsrc/Testlib/TestServer/TestPlugin/Testhelpers.py | 4 |
1 files changed, 2 insertions, 2 deletions
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() |