Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mockcustomsuite3.py 676B

1234567891011121314151617181920212223242526272829
  1. # Copyright (c) 2006 Twisted Matrix Laboratories. See LICENSE for details
  2. """
  3. Mock test module that contains both a C{test_suite} and a C{testSuite} method.
  4. L{runner.TestLoader} should load the tests from the C{testSuite}, not from the
  5. C{Foo} C{TestCase} nor from the C{test_suite} method.
  6. See {twisted.trial.test.test_loader.LoaderTest.test_loadModuleWithBothCustom}.
  7. """
  8. from twisted.trial import runner, unittest
  9. class Foo(unittest.SynchronousTestCase):
  10. def test_foo(self):
  11. pass
  12. def test_suite():
  13. ts = runner.TestSuite()
  14. ts.name = "test_suite"
  15. return ts
  16. def testSuite():
  17. ts = runner.TestSuite()
  18. ts.name = "testSuite"
  19. return ts