

@pytest.mark.parametrize('url', ['username@example.org', 'username:@example.org'])
def test_only_username_in_url(url):
    '\n    https://github.com/jkbrzt/httpie/issues/242\n\n    '
    args = httpie.cli.parser.parse_args(args=[url], env=TestEnvironment())
    assert args.auth
    assert (args.auth.key == 'username')
    assert (args.auth.value == '')

dataset/ETHPy150Open jkbrzt/httpie/tests/test_auth.py test_only_username_in_url/original