test/data/testcase_pkg/tests/unittest_no_main.py
author David Douard <david.douard@logilab.fr>
Thu, 13 Nov 2014 14:48:20 +0100
changeset 1748 e5bee2960261
parent 584 c2d1a10c29bd
permissions -rw-r--r--
[apycotlib] no more checker.need_preprocessor

import unittest

class DummyTest(unittest.TestCase):
    def runTest(self):
        pass

def Run(runner=None):
    testsuite = unittest.TestSuite()
    testsuite.addTest(DummyTest())

    if runner is None:
        runner = unittest.TextTestRunner()
    return runner.run(testsuite)