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