/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_ui.py

  • Committer: Jelmer Vernooij
  • Date: 2009-04-07 12:41:42 UTC
  • mto: This revision was merged to the branch mainline in revision 4264.
  • Revision ID: jelmer@samba.org-20090407124142-otgk4g0ibacgtmg1
Redirect to fix utf8 test with LC_ALL=C.

Show diffs side-by-side

added added

removed removed

Lines of Context:
284
284
        pb = ui.nested_progress_bar()
285
285
        try:
286
286
            # there is no output from the base factory
287
 
            username = ui.get_username(u'Hello\u1234 %(host)s',
288
 
                host=u'some\u1234')
 
287
            username = self.apply_redirected(ui.stdin, ui.stdout, ui.stdout,
 
288
                ui.get_username, u'Hello\u1234 %(host)s', host=u'some\u1234')
289
289
            self.assertEquals(u"someuser\u1234", username.decode('utf8'))
290
290
            self.assertEquals(u"Hello\u1234 some\u1234: ", 
291
291
                ui.stdout.getvalue().decode("utf8"))