/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

MergeĀ up.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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_no_repo(self):
30
37
        dir = bzrdir.BzrDir.create(self.get_url())
31
38
        error = errors.NoRepositoryPresent(dir)
45
52
            str(error))
46
53
        self.assertIsInstance(error, errors.NoSuchRevision)
47
54
 
 
55
    def test_not_write_locked(self):
 
56
        error = errors.NotWriteLocked('a thing to repr')
 
57
        self.assertEqualDiff("'a thing to repr' is not write locked but needs "
 
58
            "to be.",
 
59
            str(error))
 
60
 
48
61
    def test_up_to_date(self):
49
62
        error = errors.UpToDateFormat(bzrdir.BzrDirFormat4())
50
63
        self.assertEqualDiff("The branch format Bazaar-NG branch, "