~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/launchpad/test_register.py

  • Committer: Jelmer Vernooij
  • Date: 2011-11-27 17:42:25 UTC
  • mto: This revision was merged to the branch mainline in revision 6311.
  • Revision ID: jelmer@samba.org-20111127174225-tspfeewl0gwxxumt
Add possible_transports in a couple more places.

Show diffs side-by-side

added added

removed removed

Lines of Context:
329
329
    def test_gather_user_credentials_from_auth_conf(self):
330
330
        auth_path = config.authentication_config_filename()
331
331
        service = LaunchpadService()
332
 
        g_conf = config.GlobalStack()
333
 
        g_conf.set('email', 'Test User <test@user.com>')
 
332
        g_conf = config.GlobalConfig()
 
333
        g_conf.set_user_option('email', 'Test User <test@user.com>')
334
334
        f = open(auth_path, 'wb')
335
335
        try:
336
336
            scheme, hostinfo = urlparse.urlsplit(service.service_url)[:2]
350
350
    def test_gather_user_credentials_prompts(self):
351
351
        service = LaunchpadService()
352
352
        self.assertIs(None, service.registrant_password)
353
 
        g_conf = config.GlobalStack()
354
 
        g_conf.set('email', 'Test User <test@user.com>')
 
353
        g_conf = config.GlobalConfig()
 
354
        g_conf.set_user_option('email', 'Test User <test@user.com>')
355
355
        stdout = tests.StringIOWrapper()
356
356
        stderr = tests.StringIOWrapper()
357
357
        ui.ui_factory = tests.TestUIFactory(stdin='userpass\n',