/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-03 17:36:43 UTC
  • mfrom: (4222.2.9 ui-username)
  • mto: This revision was merged to the branch mainline in revision 4284.
  • Revision ID: jelmer@samba.org-20090403173643-xcf89aq1bn3yxipt
Merge new username ui call.

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
 
            password = ui.get_username(u'Hello\u1234 %(host)s',
 
287
            username = ui.get_username(u'Hello\u1234 %(host)s',
288
288
                host=u'some\u1234')
289
 
            self.assertEquals(u"someuser\u1234", password.decode('utf8'))
 
289
            self.assertEquals(u"someuser\u1234", username.decode('utf8'))
290
290
            self.assertEquals(ui.stdout.getvalue().decode("utf8"),
291
291
              u"Hello\u1234 some\u1234: ")
292
292
        finally: