~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_xml.py

  • Committer: Jelmer Vernooij
  • Date: 2011-02-21 19:58:27 UTC
  • mto: This revision was merged to the branch mainline in revision 5675.
  • Revision ID: jelmer@samba.org-20110221195827-fd627hir7bsqywt5
Fix unescape_xml test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
579
579
        uni_str = u'\xb5\xe5&\u062c'
580
580
        self.assertEqual('µå&ج"',
581
581
                         bzrlib.xml8._encode_and_escape(uni_str))
 
582
 
 
583
 
 
584
class TestMisc(TestCase):
 
585
 
 
586
    def test_unescape_xml(self):
 
587
        """We get some kind of error when malformed entities are passed"""
 
588
        self.assertRaises(KeyError, bzrlib.xml8._unescape_xml, 'foo&bar;')