~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 15:51:19 UTC
  • mto: (2592.5.3 pack-repository)
  • mto: This revision was merged to the branch mainline in revision 2624.
  • Revision ID: robertc@robertcollins.net-20070712155119-zmcbukds65jw3tou
Detect truncated indices.

Show diffs side-by-side

added added

removed removed

Lines of Context:
188
188
        self.assertEqual("foo is not an index of type bar.",
189
189
            str(error))
190
190
 
 
191
    def test_bad_index_data(self):
 
192
        error = errors.BadIndexData("foo")
 
193
        self.assertEqual("Error in data for index foo.",
 
194
            str(error))
 
195
 
191
196
    def test_bad_index_options(self):
192
197
        error = errors.BadIndexOptions("foo")
193
198
        self.assertEqual("Could not parse options for index foo.",