1488
1492
'scheme': scheme, 'host': host, 'port': port,
1490
1494
stdout = tests.StringIOWrapper()
1491
1496
ui.ui_factory = tests.TestUIFactory(stdin=username+ '\n',
1493
1498
# We use an empty conf so that the user is always prompted
1494
1499
conf = config.AuthenticationConfig()
1495
1500
self.assertEquals(username, conf.get_user(scheme, host, port=port,
1496
1501
realm=realm, path=path, ask=True))
1499
1505
def test_username_defaults_prompts(self):
1500
1506
# HTTP prompts can't be tested here, see test_http.py