

def test_completes_service_names_substring(index_data):
    index_data['aws']['commands'] = ['foo', 'bar foo']
    completer = AWSCLIModelCompleter(completer)
    completer.match_fuzzy = False
    assert (completer.autocomplete('fo') == ['foo'])

dataset/ETHPy150Open awslabs/aws-shell/tests/unit/test_autocomplete.py test_completes_service_names_substring/VarMisuse@28/54 `index_data`->`completer`