'Run the given test case or test suite.'

def run(self, test):

    self.count = test.countTestCases()
    result = self._makeResult()
    startTime = time.time()
    test(result)
    stopTime = time.time()
    timeTaken = float((stopTime - startTime))
    result.printErrors()
    run = result.testsRun
    if (not self.cfg.quiet):
        self.stream.writeln(result.separator2)
        self.stream.writeln(('Ran    %d    test%s    in    %.3fs' % (run, (((run != 1) and 's') or ''), timeTaken)))
        self.stream.writeln()
    if (not result.wasSuccessful()):
        self.stream.write('FAILED    (')
        (failed, errored) = list(map(len, (result.failures, result.errors)))
        if failed:
            self.stream.write(('failures=%d' % failed))
        if errored:
            if failed:
                self.stream.write(',    ')
            self.stream.write(('errors=%d' % errored))
        self.stream.writeln(')')
    elif (not self.cfg.quiet):
        self.stream.writeln('OK')
    return result
