~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Robert J. Tanner
  • Date: 2009-04-29 05:53:21 UTC
  • mfrom: (4311 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4312.
  • Revision ID: tanner@real-time.com-20090429055321-v2s5l1mgki9f6cgn
[merge] 1.14 back to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
        error = errors.InstallFailed([None])
124
124
        self.assertEqual("Could not install revisions:\nNone", str(error))
125
125
 
 
126
    def test_jail_break(self):
 
127
        error = errors.JailBreak("some url")
 
128
        self.assertEqualDiff("An attempt to access a url outside the server"
 
129
            " jail was made: 'some url'.",
 
130
            str(error))
 
131
 
126
132
    def test_lock_active(self):
127
133
        error = errors.LockActive("lock description")
128
134
        self.assertEqualDiff("The lock for 'lock description' is in use and "