/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: Martin Pool
  • Date: 2007-04-01 06:19:16 UTC
  • mfrom: (2323.5.20 0.15-integration)
  • mto: This revision was merged to the branch mainline in revision 2390.
  • Revision ID: mbp@sourcefrog.net-20070401061916-plpgsxdf8g7gll9o
Merge 0.15 final release back to trunk, including: recommend upgrades of old workingtrees, handle multiple http redirections, some dirstate fixes, 

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
class TestErrors(TestCaseWithTransport):
32
32
 
33
 
    def test_disabled_method(self):
34
 
        error = errors.DisabledMethod("class name")
35
 
        self.assertEqualDiff(
36
 
            "The smart server method 'class name' is disabled.", str(error))
37
 
 
38
33
    def test_duplicate_file_id(self):
39
34
        error = errors.DuplicateFileId('a_file_id', 'foo')
40
35
        self.assertEqualDiff('File id {a_file_id} already exists in inventory'