~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-07-10 20:30:06 UTC
  • mfrom: (1843.2.5 quote-file-ids)
  • Revision ID: pqm@pqm.ubuntu.com-20060710203006-17445a0e4b07b070
Add test of _unescape_xml

Show diffs side-by-side

added added

removed removed

Lines of Context:
428
428
            pb.finished()
429
429
        repo = repo_dir.open_repository()
430
430
        self.assertTrue(isinstance(target_format, repo._format.__class__))
 
431
 
 
432
 
 
433
class TestMisc(TestCase):
 
434
    
 
435
    def test_unescape_xml(self):
 
436
        """We get some kind of error when malformed entities are passed"""
 
437
        self.assertRaises(KeyError, repository._unescape_xml, 'foo&bar;')