~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_revisionspec.py

  • Committer: Marius Kruger
  • Date: 2008-12-04 19:09:52 UTC
  • mto: This revision was merged to the branch mainline in revision 3901.
  • Revision ID: amanic@gmail.com-20081204190952-9eed0xghn96koab1
Test invalid dotted revion number directly in TestRevisionSpec_revno

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
 
177
177
    def test_dotted_decimal(self):
178
178
        self.assertInHistoryIs(None, 'alt_r2', '1.1.1')
 
179
        self.assertInvalid('1.1.123')
179
180
 
180
181
    def test_negative_int(self):
181
182
        self.assertInHistoryIs(2, 'r2', '-1')