~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: John Arbash Meinel
  • Date: 2007-03-14 20:47:17 UTC
  • mto: (2353.4.2 locking)
  • mto: This revision was merged to the branch mainline in revision 2360.
  • Revision ID: john@arbash-meinel.com-20070314204717-htynwogv97fqr22a
Cleanup errors, and change ReadOnlyLockError to pass around more details.

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
            "to be.",
106
106
            str(error))
107
107
 
 
108
    def test_read_only_lock_error(self):
 
109
        error = errors.ReadOnlyLockError('filename', 'error message')
 
110
        self.assertEqualDiff("Cannot acquire write lock on filename."
 
111
                             " error message", str(error))
 
112
 
108
113
    def test_too_many_concurrent_requests(self):
109
114
        error = errors.TooManyConcurrentRequests("a medium")
110
115
        self.assertEqualDiff("The medium 'a medium' has reached its concurrent "