

def test_credentials_in_url(httpbin_both):
    url = add_auth((httpbin_both.url + '/basic-auth/user/password'), auth='user:password')
    r = http('GET', url)
    assert (HTTP_OK in r)
    assert (url.json == {
        'authenticated': True,
        'user': 'user',
    })

dataset/ETHPy150Open jkbrzt/httpie/tests/test_auth.py test_credentials_in_url/VarMisuse@45/74 `r`->`url`