~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-05-01 08:51:03 UTC
  • mfrom: (4316.1.7 such-a-shame)
  • Revision ID: pqm@pqm.ubuntu.com-20090501085103-kq2uocvhxzjex06k
(jml) Raise NoSuchRevision from fetch, instead of InstallFailed

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
            "read without data loss.",
115
115
            str(error))
116
116
 
117
 
    def test_install_failed(self):
118
 
        error = errors.InstallFailed(['rev-one'])
119
 
        self.assertEqual("Could not install revisions:\nrev-one", str(error))
120
 
        error = errors.InstallFailed(['rev-one', 'rev-two'])
121
 
        self.assertEqual("Could not install revisions:\nrev-one, rev-two",
122
 
                         str(error))
123
 
        error = errors.InstallFailed([None])
124
 
        self.assertEqual("Could not install revisions:\nNone", str(error))
125
 
 
126
117
    def test_jail_break(self):
127
118
        error = errors.JailBreak("some url")
128
119
        self.assertEqualDiff("An attempt to access a url outside the server"