MCPcopy Create free account
hub / github.com/sissaschool/xmlschema / test_nsmap

Method test_nsmap

tests/test_dataobjects.py:51–55  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49 self.assertEqual(data_element.get('b'), 9)
50
51 def test_nsmap(self):
52 self.assertEqual(DataElement('foo').nsmap, {})
53 nsmap = {'tns': 'http://xmlschema.test/ns'}
54 self.assertEqual(DataElement('foo', nsmap=nsmap).nsmap, nsmap)
55 self.assertIsNot(DataElement('foo', nsmap=nsmap).nsmap, nsmap)
56
57 def test_attributes_with_namespaces(self):
58 nsmap = {'tns': 'http://xmlschema.test/ns'}

Callers

nothing calls this directly

Calls 1

DataElementClass · 0.90

Tested by

no test coverage detected