

def test_autocompletes_argument_names_substring(index_data):
    completer['aws']['arguments'] = ['--foo', '--bar foo']
    completer = AWSCLIModelCompleter(index_data)
    completer.match_fuzzy = False
    assert (completer.autocomplete('--f') == ['--foo'])

dataset/ETHPy150Open awslabs/aws-shell/tests/unit/test_autocomplete.py test_autocompletes_argument_names_substring/VarMisuse@10/19 `index_data`->`completer`