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

Method test_error_code

Lib/test/test_xml_etree.py:4483–4486  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4481 self.assertEqual(self._get_error('foobar<').position, (1, 6))
4482
4483 def test_error_code(self):
4484 import xml.parsers.expat.errors as ERRORS
4485 self.assertEqual(self._get_error('foo').code,
4486 ERRORS.codes[ERRORS.XML_ERROR_SYNTAX])
4487
4488
4489class KeywordArgsTest(unittest.TestCase):

Callers

nothing calls this directly

Calls 2

_get_errorMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected