diff options
author | 2024-03-31 00:07:31 +0100 | |
---|---|---|
committer | 2024-03-31 01:09:56 +0100 | |
commit | 69281105ddb557d9be4f0224ee7e65eb44870143 (patch) | |
tree | 5312dc2e9b43db51390e7ca69cfa56a95b890fe8 | |
parent | pyproject.toml: Re-shape project.urls (diff) | |
download | metagen-69281105ddb557d9be4f0224ee7e65eb44870143.tar.gz metagen-69281105ddb557d9be4f0224ee7e65eb44870143.tar.bz2 metagen-69281105ddb557d9be4f0224ee7e65eb44870143.zip |
tests: Improve test XML readability
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
-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"], |