def METHOD_NAME(self, test):
    """Wrap entire test run in :func:`prof.runcall`.
    """
    if not self.available():
        return
    log.debug('preparing test %s' % test)
    def run_and_profile(result, prof=self.prof, test=test):
        self._create_pfile()
        prof.runcall(test, result)
    return run_and_profile