1 # Copyright (c) 2006 Twisted Matrix Laboratories. See LICENSE for details
4 Mock test module that contains both a C{test_suite} and a C{testSuite} method.
5 L{runner.TestLoader} should load the tests from the C{testSuite}, not from the
6 C{Foo} C{TestCase} nor from the C{test_suite} method.
8 See {twisted.trial.test.test_loader.LoaderTest.test_loadModuleWithBothCustom}.
12 from twisted.trial import unittest, runner
14 class Foo(unittest.TestCase):
20 ts = runner.TestSuite()
21 ts.name = "test_suite"
26 ts = runner.TestSuite()