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