summaryrefslogtreecommitdiffstats
path: root/tests/test_manifest_xml.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_manifest_xml.py')
-rw-r--r--tests/test_manifest_xml.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/test_manifest_xml.py b/tests/test_manifest_xml.py
index e4adf3c9..e2c83af9 100644
--- a/tests/test_manifest_xml.py
+++ b/tests/test_manifest_xml.py
@@ -280,6 +280,27 @@ class XmlManifestTests(unittest.TestCase):
280 '<superproject name="superproject"/>' + 280 '<superproject name="superproject"/>' +
281 '</manifest>') 281 '</manifest>')
282 282
283 def test_unknown_tags(self):
284 """Check superproject settings."""
285 manifest = self.getXmlManifest("""
286<manifest>
287 <remote name="test-remote" fetch="http://localhost" />
288 <default remote="test-remote" revision="refs/heads/main" />
289 <superproject name="superproject"/>
290 <iankaz value="unknown (possible) future tags are ignored"/>
291 <x-custom-tag>X tags are always ignored</x-custom-tag>
292</manifest>
293""")
294 self.assertEqual(manifest.superproject['name'], 'superproject')
295 self.assertEqual(manifest.superproject['remote'].name, 'test-remote')
296 self.assertEqual(
297 manifest.ToXml().toxml(),
298 '<?xml version="1.0" ?><manifest>' +
299 '<remote name="test-remote" fetch="http://localhost"/>' +
300 '<default remote="test-remote" revision="refs/heads/main"/>' +
301 '<superproject name="superproject"/>' +
302 '</manifest>')
303
283 def test_project_group(self): 304 def test_project_group(self):
284 """Check project group settings.""" 305 """Check project group settings."""
285 manifest = self.getXmlManifest(""" 306 manifest = self.getXmlManifest("""