MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_1463026_2

Method test_1463026_2

Lib/test/test_sax.py:665–676  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

663 self.assertEqual(result.getvalue(), self.xml('<a b="c"/>'))
664
665 def test_1463026_2(self):
666 result = self.ioclass()
667 gen = XMLGenerator(result)
668
669 gen.startDocument()
670 gen.startPrefixMapping(None, 'qux')
671 gen.startElementNS(('qux', 'a'), 'a', {})
672 gen.endElementNS(('qux', 'a'), 'a')
673 gen.endPrefixMapping(None)
674 gen.endDocument()
675
676 self.assertEqual(result.getvalue(), self.xml('<a xmlns="qux"></a>'))
677
678 def test_1463026_2_empty(self):
679 result = self.ioclass()

Callers

nothing calls this directly

Calls 11

startDocumentMethod · 0.95
startPrefixMappingMethod · 0.95
startElementNSMethod · 0.95
endElementNSMethod · 0.95
endPrefixMappingMethod · 0.95
endDocumentMethod · 0.95
XMLGeneratorClass · 0.90
ioclassMethod · 0.45
assertEqualMethod · 0.45
getvalueMethod · 0.45
xmlMethod · 0.45

Tested by

no test coverage detected