test/data/testcase_pkg/tests/unittest_failure.py
author Julien Cristau <julien.cristau@logilab.fr>
Wed, 23 Dec 2015 16:18:39 +0100
changeset 1856 fedb66f3233c
parent 584 c2d1a10c29bd
permissions -rwxr-xr-x
[test] don't use obsolete skip() method, use skipTest() instead

import unittest

class DummyTest(unittest.TestCase):
    def runTest(self):
        self.failUnlessEqual(1, 0)

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

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

if __name__ == '__main__':
    Run()