

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

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