

def test_autocompletes_argument_names(index_data):
    index_data['aws']['arguments'] = ['--query', '--debug']
    completer = AWSCLIModelCompleter(index_data)
    assert (completer.autocomplete('-') == ['--query', '--debug'])
    assert (completer.autocomplete('--q') == ['--query'])

dataset/ETHPy150Open awslabs/aws-shell/tests/unit/test_autocomplete.py test_autocompletes_argument_names/original