diff options
author | Devan Franchini <twitch153@gentoo.org> | 2014-11-30 01:20:17 -0500 |
---|---|---|
committer | Devan Franchini <twitch153@gentoo.org> | 2014-11-30 01:20:17 -0500 |
commit | 6236bd0dbeb638c0c67c3e32a247eb55b000e3b8 (patch) | |
tree | 35eb4f3a7fc19ef43ee4f667334973728922daa6 | |
parent | external.py: Modifies tested flags to reflect new config options (diff) | |
download | layman-6236bd0dbeb638c0c67c3e32a247eb55b000e3b8.tar.gz layman-6236bd0dbeb638c0c67c3e32a247eb55b000e3b8.tar.bz2 layman-6236bd0dbeb638c0c67c3e32a247eb55b000e3b8.zip |
external.py: Modifies XML line testing in MakeOverlayXML class
To make this testing more compliant with both py2.7 and py3.x the
method in which the test suit tested the lines in the made XML
needed to be changed as py2.7 adds the XML header when reading in
the XML test file.
-rwxr-xr-x | layman/tests/external.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layman/tests/external.py b/layman/tests/external.py index 695decc..ad630e6 100755 --- a/layman/tests/external.py +++ b/layman/tests/external.py @@ -444,7 +444,7 @@ class MakeOverlayXML(unittest.TestCase): with fileopen(path, 'r') as xml: test_line = ' <source type="svn">'\ 'https://overlays.gentoo.org/svn/dev/wrobel</source>\n' - self.assertEqual(xml.readlines()[9], test_line) + self.assertTrue(test_line in xml.readlines()) for line in xml.readlines(): print(line, end='') |