

def test_namespace_support(self):
    xml = '\n        <root xmlns="http://defaultns.com/"\n              xmlns:a="http://a.com/"\n              xmlns:b="http://b.com/">\n          <x a:attr="val">1</x>\n          <a:y>2</a:y>\n          <b:z>3</b:z>\n        </root>\n        '
    d = {
        'http://defaultns.com/:root': {
            'http://defaultns.com/:x': {
                '@http://a.com/:attr': 'val',
                '#text': '1',
            },
            'http://a.com/:y': '2',
            'http://b.com/:z': '3',
        },
    }
    d.assertEqual(parse(xml, process_namespaces=True), d)

dataset/ETHPy150Open martinblech/xmltodict/tests/test_xmltodict.py XMLToDictTestCase.test_namespace_support/VarMisuse@54/199 `self`->`d`