def test_default_querybuilder_includes_registered_matchers():
    matcher_factory = mock.Mock(return_value=mock.sentinel.MY_MATCHER,
                                spec_set=[])
    request = dummy_request()
    request.registry[core.MATCHERS_KEY] = [matcher_factory]

    builder = core.default_querybuilder(request)

    matcher_factory.assert_called_once_with(request)
    assert mock.sentinel.MY_MATCHER in builder.matchers
dataset/ETHPy150Open hypothesis/h/h/api/search/test/core_test.py/test_default_querybuilder_includes_registered_matchers/original