def test_credentials_in_url_auth_flag_has_priority(httpbin_both):
    url = add_auth(httpbin_both.url + '/basic-auth/user/password',
                   auth='user:wrong')
    r = http('--auth=user:password', 'GET', url)
    assert HTTP_OK in r
    assert r.json == {'authenticated': True, 'user': 'user'}
typ will be either 'name' or 'description',
dataset/ETHPy150Open jkbrzt/httpie/tests/test_auth.py/test_credentials_in_url_auth_flag_has_priority--crossover with--dataset/ETHPy150Open nii-cloud/dodai-compute/nova/api/openstack/contrib/security_groups.py/SecurityGroupController._validate_security_group_property