Example #1
0
def test_login_hint_without():
    _info = setup_conv()
    oper = AsyncAuthn(_info['conv'], _info['io'], None)

    oper.conv.entity.provider_info = {'issuer': 'https://example.com'}
    args = None
    login_hint(oper, args)

    assert oper.req_args["login_hint"] == '*****@*****.**'
Example #2
0
def test_login_hint_with_domain():
    _info = setup_conv()
    oper = AsyncAuthn(_info['conv'], _info['io'], None)

    oper.conv.entity.provider_info = {'issuer': 'https://example.com'}
    oper.conv.tool_config = {'login_hint': '*****@*****.**'}
    args = None
    login_hint(oper, args)

    assert oper.req_args["login_hint"] == '*****@*****.**'