1. import doctest
    
  2. from unittest import TestCase
    
  3. 
    
  4. from django.test import SimpleTestCase
    
  5. from django.test import TestCase as DjangoTestCase
    
  6. 
    
  7. from . import doctests
    
  8. 
    
  9. 
    
  10. class TestVanillaUnittest(TestCase):
    
  11.     def test_sample(self):
    
  12.         self.assertEqual(1, 1)
    
  13. 
    
  14. 
    
  15. class TestDjangoTestCase(DjangoTestCase):
    
  16.     def test_sample(self):
    
  17.         self.assertEqual(1, 1)
    
  18. 
    
  19. 
    
  20. class TestZimpleTestCase(SimpleTestCase):
    
  21.     # Z is used to trick this test case to appear after Vanilla in default suite
    
  22. 
    
  23.     def test_sample(self):
    
  24.         self.assertEqual(1, 1)
    
  25. 
    
  26. 
    
  27. class EmptyTestCase(TestCase):
    
  28.     pass
    
  29. 
    
  30. 
    
  31. def load_tests(loader, tests, ignore):
    
  32.     tests.addTests(doctest.DocTestSuite(doctests))
    
  33.     return tests