335
335
g_conf = config.GlobalConfig()
336
336
g_conf.set_user_option('email', 'Test User <test@user.com>')
337
337
stdout = tests.StringIOWrapper()
338
339
ui.ui_factory = tests.TestUIFactory(stdin='userpass\n',
340
341
self.assertIs(None, service.registrant_password)
341
342
service.gather_user_credentials()
342
343
self.assertEqual('test@user.com', service.registrant_email)
343
344
self.assertEqual('userpass', service.registrant_password)
345
347
'launchpad.net password for test@user\\.com')