Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Twisted / trial / test / mockcustomsuite2.py
Size: Mime:
# Copyright (c) 2006 Twisted Matrix Laboratories. See LICENSE for details

"""
Mock test module that contains a C{testSuite} method. L{runner.TestLoader}
should load the tests from the C{testSuite}, not from the C{Foo} C{TestCase}.

See L{twisted.trial.test.test_loader.LoaderTest.test_loadModuleWith_testSuite}.
"""


from twisted.trial import unittest, runner

class Foo(unittest.SynchronousTestCase):
    def test_foo(self):
        pass


def testSuite():
    ts = runner.TestSuite()
    ts.name = "MyCustomSuite"
    return ts