def _run(server, func):
    sys.stdout.write("* [%s] %s ... " % (func.__name__, func.__doc__.strip()))
    sys.stdout.flush()
    db_name = 'couchdb-python/perftest'
    db = server.create(db_name)
    try:
        try:
            start = time.time()
            func(db)
            stop = time.time()
            sys.stdout.write("%0.2fs\n" % (stop - start,))
            sys.stdout.flush()
        except Exception as e:
            sys.stdout.write("FAILED - %r\n" % (unicode(e),))
            sys.stdout.flush()
    finally:
        server.delete(db_name)
Performs a request, and checks that the status is OK, and that the
dataset/ETHPy150Open djc/couchdb-python/perftest.py/_run--crossover with--dataset/ETHPy150Open mrooney/mintapi/mintapi/api.py/Mint.request_and_check