~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Robert Collins
  • Date: 2007-06-26 08:52:20 UTC
  • mto: This revision was merged to the branch mainline in revision 2554.
  • Revision ID: robertc@robertcollins.net-20070626085220-iovhwfjflk8vffbh
Add require_api API.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
        self.assertEqualDiff('The prefix foo is in the help search path twice.',
47
47
            str(error))
48
48
 
 
49
    def test_incompatibleAPI(self):
 
50
        error = errors.IncompatibleAPI("module", (1, 2, 3), (4, 5, 6), (7, 8, 9))
 
51
        self.assertEqualDiff(
 
52
            'The API for "module" is not compatible with "(1, 2, 3)". '
 
53
            'It supports versions "(4, 5, 6)" to "(7, 8, 9)".',
 
54
            str(error))
 
55
 
49
56
    def test_inventory_modified(self):
50
57
        error = errors.InventoryModified("a tree to be repred")
51
58
        self.assertEqualDiff("The current inventory for the tree 'a tree to "