~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-07-12 14:05:34 UTC
  • mto: (2592.5.3 pack-repository)
  • mto: This revision was merged to the branch mainline in revision 2624.
  • Revision ID: robertc@robertcollins.net-20070712140534-fpo7n43occzqixe7
A validate that goes boom.

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
        error = errors.ReadError(path)
184
184
        self.assertEqualDiff("Error reading from u'a path'.", str(error))
185
185
 
 
186
    def test_bad_index_format_signature(self):
 
187
        error = errors.BadIndexFormatSignature("foo", "bar")
 
188
        self.assertEqual("foo is not an index of type bar.",
 
189
            str(error))
186
190
 
187
191
    def test_bzrnewerror_is_deprecated(self):
188
192
        class DeprecatedError(errors.BzrNewError):