~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: John Arbash Meinel
  • Date: 2008-02-04 21:12:49 UTC
  • mto: (3221.1.1 prepare-1.2rc1)
  • mto: This revision was merged to the branch mainline in revision 3222.
  • Revision ID: john@arbash-meinel.com-20080204211249-cb49xtg70j5okbw7
Fix bug #187169, when an invalid delta is supplied to update_basis_by_delta

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
            'It supports versions "(4, 5, 6)" to "(7, 8, 9)".',
57
57
            str(error))
58
58
 
 
59
    def test_inconsistent_delta(self):
 
60
        error = errors.InconsistentDelta('path', 'file-id', 'reason for foo')
 
61
        self.assertEqualDiff(
 
62
            "An inconsistent delta was supplied for 'path', 'file-id'\n"
 
63
            "reason: reason for foo",
 
64
            str(error))
 
65
 
59
66
    def test_in_process_transport(self):
60
67
        error = errors.InProcessTransport('fpp')
61
68
        self.assertEqualDiff(