def METHOD_NAME(get_db_rec, get_es_rec, g_p_t_f_e):
    g_p_t_f_e.return_value = 'pt'
    get_es_rec.side_effect = RecordGetterError('err', None)
    get_db_rec.side_effect = RecordGetterError('err', None)
    config = {'SERVER_NAME': 'http://inspirehep.net'}
    with patch.dict(current_app.config, config):
        expect_none = JsonRef({'$ref': 'http://inspirehep.net/api/e/1'},
                              loader=DatabaseJsonLoader())
        assert expect_none == None  # noqa: E711
        expect_none = JsonRef({'$ref': 'http://inspirehep.net/api/e/2'},
                              loader=ESJsonLoader())
        assert expect_none == None  # noqa: E711
        assert get_db_rec.call_count == 1
        assert get_es_rec.call_count == 1