MCPcopy Index your code
hub / github.com/python/cpython / test_expat_incomplete

Method test_expat_incomplete

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

Source from the content-addressed store, hash-verified

1329 self.assertEqual(e.getSystemId(), name)
1330
1331 def test_expat_incomplete(self):
1332 parser = create_parser()
1333 parser.setContentHandler(ContentHandler()) # do nothing
1334 self.assertRaises(SAXParseException, parser.parse, StringIO("<foo>"))
1335 self.assertEqual(parser.getColumnNumber(), 5)
1336 self.assertEqual(parser.getLineNumber(), 1)
1337
1338 def test_sax_parse_exception_str(self):
1339 # pass various values from a locator to the SAXParseException to

Callers

nothing calls this directly

Calls 8

create_parserFunction · 0.90
ContentHandlerClass · 0.90
StringIOClass · 0.90
setContentHandlerMethod · 0.45
assertRaisesMethod · 0.45
assertEqualMethod · 0.45
getColumnNumberMethod · 0.45
getLineNumberMethod · 0.45

Tested by

no test coverage detected