diff options
Diffstat (limited to 'parts/django/tests/modeltests/test_client/tests.py')
-rw-r--r-- | parts/django/tests/modeltests/test_client/tests.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/parts/django/tests/modeltests/test_client/tests.py b/parts/django/tests/modeltests/test_client/tests.py new file mode 100644 index 0000000..09f292e --- /dev/null +++ b/parts/django/tests/modeltests/test_client/tests.py @@ -0,0 +1,20 @@ +# 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") |