/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 bzr.dev

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 "
409
423
            "Unable to create symlink u'\\xb5' on this platform",
410
424
            str(err))
411
425
 
 
426
    def test_incorrect_url(self):
 
427
        err = errors.InvalidBugTrackerURL('foo', 'http://bug.com/')
 
428
        self.assertEquals(
 
429
            ("The URL for bug tracker \"foo\" doesn't contain {id}: "
 
430
             "http://bug.com/"),
 
431
            str(err))
 
432
 
412
433
 
413
434
class PassThroughError(errors.BzrError):
414
435