~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 16:49:54 UTC
  • mto: (2592.5.3 pack-repository)
  • mto: This revision was merged to the branch mainline in revision 2624.
  • Revision ID: robertc@robertcollins.net-20070712164954-gtnnmqd5oyfob20t
Handle basic node adds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
193
193
        self.assertEqual("Error in data for index foo.",
194
194
            str(error))
195
195
 
 
196
    def test_bad_index_key(self):
 
197
        error = errors.BadIndexKey("foo")
 
198
        self.assertEqual("The key 'foo' is not a valid key.",
 
199
            str(error))
 
200
 
196
201
    def test_bad_index_options(self):
197
202
        error = errors.BadIndexOptions("foo")
198
203
        self.assertEqual("Could not parse options for index foo.",
199
204
            str(error))
200
205
 
 
206
    def test_bad_index_value(self):
 
207
        error = errors.BadIndexValue("foo")
 
208
        self.assertEqual("The value 'foo' is not a valid value.",
 
209
            str(error))
 
210
 
201
211
    def test_bzrnewerror_is_deprecated(self):
202
212
        class DeprecatedError(errors.BzrNewError):
203
213
            pass