~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Patch Queue Manager
  • Date: 2012-02-06 12:27:27 UTC
  • mfrom: (6449.6.7 bzr)
  • Revision ID: pqm@pqm.ubuntu.com-20120206122727-bq0phmt80bmlvvx7
(jelmer) Use config stacks in a few more places. (Jelmer Vernooij)

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.GlobalConfig()
333
 
        g_conf.set_user_option('email', 'Test User <test@user.com>')
 
332
        g_conf = config.GlobalStack()
 
333
        g_conf.set('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.GlobalConfig()
354
 
        g_conf.set_user_option('email', 'Test User <test@user.com>')
 
353
        g_conf = config.GlobalStack()
 
354
        g_conf.set('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',