~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test__annotator.py

  • Committer: John Arbash Meinel
  • Date: 2009-06-18 18:48:33 UTC
  • mto: This revision was merged to the branch mainline in revision 4522.
  • Revision ID: john@arbash-meinel.com-20090618184833-sbl535idwmrhh833
Start working on 'annotate_flat' which conforms to the original spec.

Show diffs side-by-side

added added

removed removed

Lines of Context:
167
167
        ann = self.module.Annotator(self.vf)
168
168
        self.assertAnnotateEqual([(self.fa_key,), (self.fa_key, self.fc_key)],
169
169
                                 ann, self.fd_key)
 
170
 
 
171
    def test_annotate_flat_simple(self):
 
172
        self.make_simple_text()
 
173
        ann = self.module.Annotator(self.vf)
 
174
        self.assertEqual([(self.fa_key, 'simple\n'),
 
175
                          (self.fa_key, 'content\n'),
 
176
                         ], ann.annotate_flat(self.fa_key))
 
177
        self.assertEqual([(self.fa_key, 'simple\n'),
 
178
                          (self.fb_key, 'new content\n'),
 
179
                         ], ann.annotate_flat(self.fb_key))