def test_can_handle_autocomplete_empty_string_twice(index_data):
    # Sometimes prompt_toolkit will try to autocomplete
    # the empty string multiple times.  We need to handle this
    # gracefully.
    index_data['aws']['commands'] = ['first', 'second']
    completer = AWSCLIModelCompleter(index_data)
    assert completer.autocomplete('') != []
    assert completer.autocomplete('') == []
dataset/ETHPy150Open awslabs/aws-shell/tests/unit/test_autocomplete.py/test_can_handle_autocomplete_empty_string_twice/operator `==` -> `!=`