⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
twisted
/
trial
/
test
/
View File Name :
mockcustomsuite3.py
# 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 runner, unittest class Foo(unittest.SynchronousTestCase): def test_foo(self) -> None: pass def test_suite(): ts = runner.TestSuite() ts.name = "test_suite" return ts def testSuite(): ts = runner.TestSuite() ts.name = "testSuite" return ts