def METHOD_NAME(self,method,params):
    '''
    Intercepts requests.
    In record mode they are recorded before being returned.
    In replay mode they are read from fixtures instead
    Exceptions are also captured and reraised
    '''
    ret = None
    if self._fixture_replay:
        ret = self._get_fixture(method,params)
        if 'exception' in ret:
            reraise(*loads(b64decode(ret['exception'])))
    else:
        try:
            ret = OneServer.METHOD_NAME(self, method, params)
        except Exception as exception:
            ret = {
                "exception": b64encode(dumps(exc_info(), 2)).decode(),
            }
            raise exception
        finally:
            self._set_fixture(method,params,ret)
    return ret