author | Nishanth Amuluru <nishanth@fossee.in> |
Sun, 09 Jan 2011 10:46:12 +0530 | |
changeset 113 | ac75d3cfa96f |
parent 69 | 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")