~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: 2012-02-28 10:06:39 UTC
  • mfrom: (6437.40.2 rmbranch-colo)
  • mto: This revision was merged to the branch mainline in revision 6482.
  • Revision ID: jelmer@samba.org-20120228100639-p5gndu91wuqwugti
Merge rmbranch-colo.

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',