Lines 666-672
class MalformedInputTest(unittest.TestCase):
Link Here
|
666 |
parser.Parse(xml, True) |
666 |
parser.Parse(xml, True) |
667 |
self.fail() |
667 |
self.fail() |
668 |
except expat.ExpatError as e: |
668 |
except expat.ExpatError as e: |
669 |
self.assertEqual(str(e), 'XML declaration not well-formed: line 1, column 14') |
669 |
self.assertIn(str(e), [ |
|
|
670 |
'XML declaration not well-formed: line 1, column 13', |
671 |
'XML declaration not well-formed: line 1, column 14', |
672 |
]) |
670 |
|
673 |
|
671 |
class ErrorMessageTest(unittest.TestCase): |
674 |
class ErrorMessageTest(unittest.TestCase): |
672 |
def test_codes(self): |
675 |
def test_codes(self): |
673 |
- |
|
|