def METHOD_NAME(self):
    # Make a new runner per function to be tested
    runner = DocTestRunner(verbose=d2u.verbose)
    for the_test in d2u.finder.find(func, func.__name__):
        runner.run(the_test)
    failed = count_failures(runner)
    if failed:
        # Since we only looked at a single function's docstring,
        # failed should contain at most one item.  More than that
        # is a case we can't handle and should error out on
        if len(failed) > 1:
            err = "Invalid number of test results: %s" % failed
            raise ValueError(err)
        # Report a normal failure.
        self.fail('failed doctests: %s' % str(failed[0]))