~ubuntu-branches/ubuntu/saucy/python-django/saucy-updates

« back to all changes in this revision

Viewing changes to tests/modeltests/test_client/tests.py

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2008-11-15 19:15:33 UTC
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: james.westby@ubuntu.com-20081115191533-84v2zyjbmp1074ni
Tags: upstream-1.0.1
ImportĀ upstreamĀ versionĀ 1.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Validate that you can override the default test suite
2
 
 
3
 
import unittest
4
 
 
5
 
def 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
 
    
15
 
class SampleTests(unittest.TestCase):
16
 
    def testGoodStuff(self):
17
 
        pass
18
 
        
19
 
    def testBadStuff(self):
20
 
        self.fail("This test shouldn't run")