~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-04-27 06:47:50 UTC
  • mfrom: (4294.2.12 push.roundtrips)
  • Revision ID: pqm@pqm.ubuntu.com-20090427064750-e9obd6h83omt86ps
(robertc) Reduce roundtrips needed to push a new branch by coalescing
        many steps of the initialisation process. (Robert Collins)

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 "