����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 74.208.127.88 / Your IP : 3.143.7.73 Web Server : Apache/2.4.41 (Ubuntu) System : Linux ubuntu 5.4.0-163-generic #180-Ubuntu SMP Tue Sep 5 13:21:23 UTC 2023 x86_64 User : www-data ( 33) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/twisted/trial/test/ |
Upload File : |
"""This module is used by test_loader to test the Trial test loading functionality. Do NOT change the number of tests in this module. Do NOT change the names the tests in this module. """ from __future__ import absolute_import, division import unittest as pyunit from twisted.trial import unittest from twisted.python.util import mergeFunctionMetadata class FooTest(unittest.SynchronousTestCase): def test_foo(self): pass def test_bar(self): pass def badDecorator(fn): """ Decorate a function without preserving the name of the original function. Always return a function with the same name. """ def nameCollision(*args, **kwargs): return fn(*args, **kwargs) return nameCollision def goodDecorator(fn): """ Decorate a function and preserve the original name. """ def nameCollision(*args, **kwargs): return fn(*args, **kwargs) return mergeFunctionMetadata(fn, nameCollision) class DecorationTest(unittest.SynchronousTestCase): def test_badDecorator(self): """ This test method is decorated in a way that gives it a confusing name that collides with another method. """ test_badDecorator = badDecorator(test_badDecorator) def test_goodDecorator(self): """ This test method is decorated in a way that preserves its name. """ test_goodDecorator = goodDecorator(test_goodDecorator) def renamedDecorator(self): """ This is secretly a test method and will be decorated and then renamed so test discovery can find it. """ test_renamedDecorator = goodDecorator(renamedDecorator) def nameCollision(self): """ This isn't a test, it's just here to collide with tests. """ class PyunitTest(pyunit.TestCase): def test_foo(self): pass def test_bar(self): pass class NotATest(object): def test_foo(self): pass class AlphabetTest(unittest.SynchronousTestCase): def test_a(self): pass def test_b(self): pass def test_c(self): pass