K2LL33D SHELL

 Apache/2.4.7 (Ubuntu)
 Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64
 uid=33(www-data) gid=33(www-data) groups=33(www-data)
 safemode : OFF
 MySQL: ON | Perl: ON | cURL: OFF | WGet: ON
  >  / usr / lib / python2.7 / dist-packages / twisted / trial / test /
server ip : 172.67.156.115

your ip : 108.162.241.199

H O M E


Filename/usr/lib/python2.7/dist-packages/twisted/trial/test/mockcustomsuite3.py
Size675
Permissionrw-r--r--
Ownerroot : root
Create time27-Apr-2025 09:56
Last modified23-Aug-2012 21:47
Last accessed07-Jul-2025 10:03
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
# Copyright (c) 2006 Twisted Matrix Laboratories. See LICENSE for details

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

See {twisted.trial.test.test_loader.LoaderTest.test_loadModuleWithBothCustom}.
"""


from twisted.trial import unittest, runner

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


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


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