summaryrefslogtreecommitdiff
path: root/tests/test_client/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_client/tests.py')
-rw-r--r--tests/test_client/tests.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/test_client/tests.py b/tests/test_client/tests.py
new file mode 100644
index 0000000000..6ad51ac9a0
--- /dev/null
+++ b/tests/test_client/tests.py
@@ -0,0 +1,21 @@
+# 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")