diff options
-rw-r--r-- | metagen/tests/test_meta.py | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/metagen/tests/test_meta.py b/metagen/tests/test_meta.py index e692eb5..be7afb0 100644 --- a/metagen/tests/test_meta.py +++ b/metagen/tests/test_meta.py @@ -14,14 +14,14 @@ class TestMyMetadata(unittest.TestCase): <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'> <pkgmetadata> - \t<maintainer type="person"> - \t\t<email>pythonhead@gentoo.org</email> - \t\t<name>Rob Cakebread</name> - \t\t<description>Maintainer description.</description> - \t</maintainer> + <maintainer type="person"> + <email>pythonhead@gentoo.org</email> + <name>Rob Cakebread</name> + <description>Maintainer description.</description> + </maintainer> </pkgmetadata> """.strip("\n") - ) + ).replace(' ', '\t') metadata = MyMetadata() metadata.set_maintainer(["pythonhead@gentoo.org"], @@ -36,20 +36,20 @@ class TestMyMetadata(unittest.TestCase): <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'> <pkgmetadata> - \t<maintainer type="person"> - \t\t<email>goofy@gentoo.org</email> - \t\t<name>Goo Fi</name> - \t\t<description>Maintainer one.</description> - \t</maintainer> - \t<maintainer type="person"> - \t\t<email>pythonhead@gentoo.org</email> - \t\t<name>Rob Cakebread</name> - \t\t<description>Maintainer two</description> - \t</maintainer> - \t<longdescription>This packages does X Y and Z.</longdescription> + <maintainer type="person"> + <email>goofy@gentoo.org</email> + <name>Goo Fi</name> + <description>Maintainer one.</description> + </maintainer> + <maintainer type="person"> + <email>pythonhead@gentoo.org</email> + <name>Rob Cakebread</name> + <description>Maintainer two</description> + </maintainer> + <longdescription>This packages does X Y and Z.</longdescription> </pkgmetadata> """.strip("\n") - ) + ).replace(' ', '\t') metadata = MyMetadata() metadata.set_maintainer(["goofy@gentoo.org", "pythonhead@gentoo.org"], |