

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

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