~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

merge fix for bug 173010 since it changes the http response handling in a good way

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
            "The transport 'fpp' is only accessible within this process.",
57
57
            str(error))
58
58
 
 
59
    def test_invalid_http_range(self):
 
60
        error = errors.InvalidHttpRange('path',
 
61
                                        'Content-Range: potatoes 0-00/o0oo0',
 
62
                                        'bad range')
 
63
        self.assertEquals("Invalid http range"
 
64
                          " 'Content-Range: potatoes 0-00/o0oo0'"
 
65
                          " for path: bad range",
 
66
                          str(error))
 
67
 
 
68
    def test_invalid_range(self):
 
69
        error = errors.InvalidRange('path', 12, 'bad range')
 
70
        self.assertEquals("Invalid range access in path at 12: bad range",
 
71
                          str(error))
 
72
 
59
73
    def test_inventory_modified(self):
60
74
        error = errors.InventoryModified("a tree to be repred")
61
75
        self.assertEqualDiff("The current inventory for the tree 'a tree to "