author | Nishanth Amuluru <nishanth@fossee.in> |
Tue, 11 Jan 2011 12:30:10 +0530 | |
changeset 378 | 8fcde6f8f750 |
parent 307 | c6bca38c1cbf |
permissions | -rw-r--r-- |
# Validate that you can override the default test suite import unittest def suite(): """ Define a suite that deliberately ignores a test defined in this module. """ testSuite = unittest.TestSuite() testSuite.addTest(SampleTests('testGoodStuff')) return testSuite class SampleTests(unittest.TestCase): def testGoodStuff(self): pass def testBadStuff(self): self.fail("This test shouldn't run")