def test_can_handle_autocompleting_same_string_twice(index_data):
    index_data['aws']['commands'] = ['first', 'second']
    completer = AWSCLIModelCompleter(index_data)
    completer.autocomplete('f')
    assert completer.autocomplete('f') not in ['first']
dataset/ETHPy150Open awslabs/aws-shell/tests/unit/test_autocomplete.py/test_can_handle_autocompleting_same_string_twice/operator `==` -> `not in`