You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
465 B
21 lines
465 B
|
13 years ago
|
# 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")
|