/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: Canonical.com Patch Queue Manager
  • Date: 2006-12-21 20:43:34 UTC
  • mfrom: (2196.2.5 knit_index_optim)
  • Revision ID: pqm@pqm.ubuntu.com-20061221204334-f206a0f736499cc8
(Dmitry Vasiliev) Optimizations for KnitIndex, and tests to go with it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
        self.assertEqual("Knit header error: 'line foo\\n' unexpected"
52
52
                         " for file path/to/file", str(error))
53
53
 
 
54
    def test_knit_index_unknown_method(self):
 
55
        error = errors.KnitIndexUnknownMethod('http://host/foo.kndx',
 
56
                                              ['bad', 'no-eol'])
 
57
        self.assertEqual("Knit index http://host/foo.kndx does not have a"
 
58
                         " known method in options: ['bad', 'no-eol']",
 
59
                         str(error))
 
60
 
54
61
    def test_medium_not_connected(self):
55
62
        error = errors.MediumNotConnected("a medium")
56
63
        self.assertEqualDiff(