~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to testknit.py

  • Committer: Martin Pool
  • Date: 2005-06-27 07:47:39 UTC
  • mto: This revision was merged to the branch mainline in revision 852.
  • Revision ID: mbp@sourcefrog.net-20050627074739-1f13a4d78aa5bfd9
Add another change for delta of new version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
 
85
85
        self.log('raw changes: ' + pformat(changes))
86
86
 
87
 
        # should be one inserted line after line 0
 
87
        # should be one inserted line after line 0q
88
88
        self.assertEquals(changes,
89
89
                          [(1, 1, ['new line'])])
90
90
 
 
91
        changes = k._delta(set([0]),
 
92
                           ['top line',
 
93
                            'line 1'])
 
94
        
 
95
        self.assertEquals(list(changes),
 
96
                          [(0, 0, ['top line'])])
 
97
 
 
98
 
91
99
 
92
100
class MatchedLine(TestBase):
93
101
    """Store a revision that adds one line to the original.