81
81
def test_unregistered_spec(self):
82
82
self.assertRaises(errors.NoSuchRevisionSpec, get_revision_spec, 'foo')
88
89
self.assertInHistoryIs(0, None, '0')
89
90
self.assertInHistoryIs(1, 'r1', '1')
90
91
self.assertInHistoryIs(2, 'r2', '2')
95
96
self.assertInHistoryIs(2, 'r2', '-1')
96
97
self.assertInHistoryIs(1, 'r1', '-2')