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

Method test_error_position

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

Source from the content-addressed store, hash-verified

4476 return e
4477
4478 def test_error_position(self):
4479 self.assertEqual(self._get_error('foo').position, (1, 0))
4480 self.assertEqual(self._get_error('<tag>&foo;</tag>').position, (1, 5))
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

Callers

nothing calls this directly

Calls 2

_get_errorMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected