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.

mockcustomsuite.py 536B

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