~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_ui.py

  • Committer: Jelmer Vernooij
  • Date: 2009-04-07 11:51:05 UTC
  • mto: (4222.3.7 username)
  • mto: This revision was merged to the branch mainline in revision 4264.
  • Revision ID: jelmer@samba.org-20090407115105-r7tx90v1ejqijf6y
Review feedback from vila: cope with stdin.readline() returning None, fix consistency in tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
287
287
            username = ui.get_username(u'Hello\u1234 %(host)s',
288
288
                host=u'some\u1234')
289
289
            self.assertEquals(u"someuser\u1234", username.decode('utf8'))
290
 
            self.assertEquals(ui.stdout.getvalue().decode("utf8"),
291
 
              u"Hello\u1234 some\u1234: ")
 
290
            self.assertEquals(u"Hello\u1234 some\u1234: ", 
 
291
                ui.stdout.getvalue().decode("utf8"))
292
292
        finally:
293
293
            pb.finished()
294
294