~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_ui.py

  • Committer: Martin Pool
  • Date: 2009-11-16 02:26:02 UTC
  • mto: This revision was merged to the branch mainline in revision 4880.
  • Revision ID: mbp@sourcefrog.net-20091116022602-mmi0h9w25qsboi55
Add TextUIOutputStream.writelines

Show diffs side-by-side

added added

removed removed

Lines of Context:
268
268
        stream = TextUIOutputStream(uif, uif.stdout)
269
269
        stream.write("Hello world!\n")
270
270
        stream.write("there's more...\n")
 
271
        stream.writelines(["1\n", "2\n", "3\n"])
271
272
        
272
273
        self.assertEqual(stdout.getvalue(),
273
274
            "Hello world!\n"
274
 
            "there's more...\n")
275
 
        self.assertEqual(['clear', 'clear'],
 
275
            "there's more...\n"
 
276
            "1\n2\n3\n")
 
277
        self.assertEqual(['clear', 'clear', 'clear'],
276
278
            clear_calls)
277
279
 
278
280