~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to testknit.py

  • Committer: Martin Pool
  • Date: 2005-06-27 08:10:16 UTC
  • mto: This revision was merged to the branch mainline in revision 852.
  • Revision ID: mbp@sourcefrog.net-20050627081016-cf275d976aa66f82
Check that version numbers passed in are reasonable

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
 
98
98
 
99
99
 
 
100
class InvalidAdd(TestBase):
 
101
    """Try to use invalid version number during add."""
 
102
    def runTest(self):
 
103
        k = Knit()
 
104
 
 
105
        self.assertRaises(IndexError,
 
106
                          k.add,
 
107
                          [69],
 
108
                          ['new text!'])
 
109
 
 
110
 
100
111
class InsertLines(TestBase):
101
112
    """Store a revision that adds one line to the original.
102
113