~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: Aaron Bentley
  • Date: 2006-07-10 20:22:10 UTC
  • mto: This revision was merged to the branch mainline in revision 1848.
  • Revision ID: abentley@panoramicfeedback.com-20060710202210-9afdbdc3b2706522
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;')