/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: v.ladeuil+lp at free
  • Date: 2006-10-17 14:01:12 UTC
  • mfrom: (2084 +trunk)
  • mto: (2145.1.1 keepalive)
  • mto: This revision was merged to the branch mainline in revision 2146.
  • Revision ID: v.ladeuil+lp@free.fr-20061017140112-8ae6aac456429ccf
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006 by Canonical Ltd
 
1
# Copyright (C) 2006 Canonical Ltd
2
2
#   Authors: Robert Collins <robert.collins@canonical.com>
3
3
#
4
4
# This program is free software; you can redistribute it and/or modify
26
26
 
27
27
class TestErrors(TestCaseWithTransport):
28
28
 
 
29
    def test_inventory_modified(self):
 
30
        error = errors.InventoryModified("a tree to be repred")
 
31
        self.assertEqualDiff("The current inventory for the tree 'a tree to "
 
32
            "be repred' has been modified, so a clean inventory cannot be "
 
33
            "read without data loss.",
 
34
            str(error))
 
35
 
29
36
    def test_medium_not_connected(self):
30
37
        error = errors.MediumNotConnected("a medium")
31
38
        self.assertEqualDiff(
49
56
            "atree.",
50
57
            str(error))
51
58
 
 
59
    def test_not_write_locked(self):
 
60
        error = errors.NotWriteLocked('a thing to repr')
 
61
        self.assertEqualDiff("'a thing to repr' is not write locked but needs "
 
62
            "to be.",
 
63
            str(error))
 
64
 
52
65
    def test_too_many_concurrent_requests(self):
53
66
        error = errors.TooManyConcurrentRequests("a medium")
54
67
        self.assertEqualDiff("The medium 'a medium' has reached its concurrent "