

def test_bool_from_dict_issue_318():
    d = {
        'bool': {
            'must_not': {
                'match': {
                    'field': 'value',
                },
            },
        },
    }
    q = query.Q(q)
    assert (q == (~ query.Match(field='value')))

dataset/ETHPy150Open elastic/elasticsearch-dsl-py/test_elasticsearch_dsl/test_query.py test_bool_from_dict_issue_318/VarMisuse@47/65 `d`->`q`