/tests/modeltests/test_client/tests.py
Python | 20 lines | 10 code | 5 blank | 5 comment | 0 complexity | 17f507341cec7713b8efa18ceb1f15a1 MD5 | raw file
Possible License(s): BSD-3-Clause
- # Validate that you can override the default test suite
- from django.utils 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")