PageRenderTime 50ms CodeModel.GetById 46ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/tests/modeltests/test_client/tests.py

https://code.google.com/p/mango-py/
Python | 20 lines | 10 code | 5 blank | 5 comment | 0 complexity | 17f507341cec7713b8efa18ceb1f15a1 MD5 | raw file
 1# Validate that you can override the default test suite
 2
 3from django.utils import unittest
 4
 5def suite():
 6    """
 7    Define a suite that deliberately ignores a test defined in
 8    this module.
 9    """
10    
11    testSuite = unittest.TestSuite()
12    testSuite.addTest(SampleTests('testGoodStuff'))
13    return testSuite
14    
15class SampleTests(unittest.TestCase):
16    def testGoodStuff(self):
17        pass
18        
19    def testBadStuff(self):
20        self.fail("This test shouldn't run")