/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 bzrlib/tests/test_xml.py

Merge repository-format-deprecation branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
536
536
        uni_str = u'\xb5\xe5&\u062c'
537
537
        self.assertEqual('µå&ج"',
538
538
                         bzrlib.xml8._encode_and_escape(uni_str))
 
539
 
 
540
 
 
541
class TestMisc(TestCase):
 
542
 
 
543
    def test_unescape_xml(self):
 
544
        """We get some kind of error when malformed entities are passed"""
 
545
        self.assertRaises(KeyError, bzrlib.xml8._unescape_xml, 'foo&bar;')