/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/test_xml.py

  • Committer: Jelmer Vernooij
  • Date: 2019-03-02 22:31:28 UTC
  • mfrom: (7291 work)
  • mto: This revision was merged to the branch mainline in revision 7293.
  • Revision ID: jelmer@jelmer.uk-20190302223128-0qk1i5tozmzq5nyq
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
511
511
 
512
512
        self.assertEqual(len(expected), len(actual))
513
513
 
 
514
    def test_serialization_error(self):
 
515
        s_v5 = breezy.bzr.xml5.serializer_v5
 
516
        e = self.assertRaises(
 
517
            errors.UnexpectedInventoryFormat,
 
518
            s_v5.read_inventory_from_string, b"<Notquitexml")
 
519
        self.assertEqual(str(e), "unclosed token: line 1, column 0")
 
520
 
514
521
 
515
522
class TestEncodeAndEscape(TestCase):
516
523
    """Whitebox testing of the _encode_and_escape function."""