~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_annotate.py

  • Committer: Adeodato Simó
  • Date: 2007-07-08 13:50:13 UTC
  • mto: (2593.2.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 2594.
  • Revision ID: dato@net.com.org.es-20070708135013-n0cfcwws6uulx4v6
Fix copy&paste bug in test, catched by John.

Show diffs side-by-side

added added

removed removed

Lines of Context:
331
331
        to_file = tests.StringIOWrapper()
332
332
        to_file.encoding = None
333
333
        annotate.annotate_file(tree1.branch, 'rev-2', 'b-id', to_file=to_file)
334
 
        self.assertContainsRe('2   p.rez   | bye\n', sio.getvalue())
 
334
        self.assertContainsRe('2   p.rez   | bye\n', to_file.getvalue())
335
335
 
336
336
        # and when it does not exist
337
337
        to_file = StringIO()
338
338
        annotate.annotate_file(tree1.branch, 'rev-2', 'b-id', to_file=to_file)
339
 
        self.assertContainsRe('2   p.rez   | bye\n', sio.getvalue())
 
339
        self.assertContainsRe('2   p.rez   | bye\n', to_file.getvalue())
340
340
 
341
341
 
342
342
class TestReannotate(tests.TestCase):