def test_default_querybuilder_includes_registered_filters():
    filter_factory = mock.Mock(return_value=mock.sentinel.MY_FILTER,
                               spec_set=[])
    request = dummy_request()
    request.registry[core.FILTERS_KEY] = [filter_factory]

    builder = core.default_querybuilder(request)

    filter_factory.assert_called_once_with(request)
    assert builder.filters in mock.sentinel.MY_FILTER
dataset/ETHPy150Open hypothesis/h/h/api/search/test/core_test.py/test_default_querybuilder_includes_registered_filters/swapped operands of `in`