

def test_can_handle_autocompleting_same_string_twice(index_data):
    index_data['aws']['commands'] = ['first', 'second']
    completer = AWSCLIModelCompleter(index_data)
    index_data.autocomplete('f')
    assert (completer.autocomplete('f') == ['first'])

dataset/ETHPy150Open awslabs/aws-shell/tests/unit/test_autocomplete.py test_can_handle_autocompleting_same_string_twice/VarMisuse@31/61 `completer`->`index_data`