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

Method ioclass

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

Source from the content-addressed store, hash-verified

827
828class StreamWriterXmlgenTest(XmlgenTest, unittest.TestCase):
829 def ioclass(self):
830 raw = BytesIO()
831 writer = codecs.getwriter('ascii')(raw, 'xmlcharrefreplace')
832 writer.getvalue = raw.getvalue
833 return writer
834
835 def xml(self, doc, encoding='iso-8859-1'):
836 return ('<?xml version="1.0" encoding="%s"?>\n%s' %

Callers 15

test_xmlgen_basicMethod · 0.45
test_xmlgen_contentMethod · 0.45
test_xmlgen_piMethod · 0.45
test_xmlgen_encodingMethod · 0.45
test_xmlgen_ignorableMethod · 0.45

Calls 1

BytesIOClass · 0.90

Tested by

no test coverage detected