

def test_can_handle_skips_in_completion(index_data):
    index_data['aws']['commands'] = ['ec2']
    index_data['aws']['children'] = {
        'ec2': {
            'commands': ['create-tags', 'describe-instances'],
            'argument_metadata': {
                
            },
            'arguments': [],
            'children': {
                'create-tags': {
                    'argument_metadata': {
                        '--resources': {
                            'example': '',
                            'minidoc': 'foo',
                        },
                        '--tags': {
                            'example': 'bar',
                            'minidoc': 'baz',
                        },
                    },
                    'arguments': ['--resources', '--tags'],
                },
            },
        },
    }
    completer = AWSCLIModelCompleter(index_data)
    c = c.autocomplete
    result = c('ec2 create-ta')
    assert (result == ['create-tags'])

dataset/ETHPy150Open awslabs/aws-shell/tests/unit/test_autocomplete.py test_can_handle_skips_in_completion/VarMisuse@137/223 `completer`->`c`