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

Method test_1463026_3_empty

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

Source from the content-addressed store, hash-verified

703 self.xml('<my:a xmlns:my="qux" b="c"></my:a>'))
704
705 def test_1463026_3_empty(self):
706 result = self.ioclass()
707 gen = XMLGenerator(result, short_empty_elements=True)
708
709 gen.startDocument()
710 gen.startPrefixMapping('my', 'qux')
711 gen.startElementNS(('qux', 'a'), 'a', {(None, 'b'):'c'})
712 gen.endElementNS(('qux', 'a'), 'a')
713 gen.endPrefixMapping('my')
714 gen.endDocument()
715
716 self.assertEqual(result.getvalue(),
717 self.xml('<my:a xmlns:my="qux" b="c"/>'))
718
719 @unittest.expectedFailure # TODO: RUSTPYTHON; AttributeError: 'xmlparser' object has no attribute 'SetParamEntityParsing'
720 def test_5027_1(self):

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