~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:18:07 UTC
  • mto: This revision was merged to the branch mainline in revision 852.
  • Revision ID: mbp@sourcefrog.net-20050627081807-dc3ff5726c88b247
More tests for insertion of lines in new versions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
                         [(0, 'line 1'),
131
131
                          (1, 'line 2')])
132
132
 
 
133
        k.add([0], ['line 1', 'diverged line'])
 
134
 
 
135
        self.assertEqual(k.annotate(2),
 
136
                         [(0, 'line 1'),
 
137
                          (2, 'diverged line')])
 
138
 
 
139
        k.add([0, 1],
 
140
              ['line 1', 'middle line', 'line 2'])
 
141
 
 
142
        self.assertEqual(k.annotate(3),
 
143
                         [(0, 'line 1'),
 
144
                          (3, 'middle line'),
 
145
                          (1, 'line 2')])
 
146
 
133
147
 
134
148
 
135
149
class IncludeVersions(TestBase):