HEX
Server: nginx/1.24.0
System: Linux localhost 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
User: www (1000)
PHP: 8.3.27
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: //lib/python3/dist-packages/twisted/python/test/__pycache__/test_win32.cpython-310.pyc
o

�b��@sHdZddlmZmZddlmZGdd�dej�ZGdd�dej�ZdS)	z$
Tests for L{twisted.python.win32}.
�)�reflect�win32)�unittestc@s(eZdZdZdd�Zdd�Zdd�ZdS)	�CommandLineQuotingTestsz$
    Tests for L{cmdLineQuote}.
    cCs|�t�d�d�dS)zq
        Calling C{cmdLineQuote} with an argument with no spaces returns
        the argument unchanged.
        �an_argumentN��assertEqualr�cmdLineQuote��self�r�@/usr/lib/python3/dist-packages/twisted/python/test/test_win32.py�test_argWithoutSpaces�z-CommandLineQuotingTests.test_argWithoutSpacescC�|�t�d�d�dS)z
        Calling C{cmdLineQuote} with an argument containing spaces returns
        the argument surrounded by quotes.
        zAn Argumentz
"An Argument"Nrr
rrr
�test_argWithSpacesrz*CommandLineQuotingTests.test_argWithSpacescCr)ze
        Calling C{cmdLineQuote} with an empty string returns a quoted empty
        string.
        �z""Nrr
rrr
�test_emptyStringArgrz+CommandLineQuotingTests.test_emptyStringArgN)�__name__�
__module__�__qualname__�__doc__rrrrrrr
rs
rc@s eZdZdZdd�Zdd�ZdS)�DeprecationTestsz2
    Tests for deprecated (Fake)WindowsError.
    cC�|�tdtjdd��dS)z?Importing C{FakeWindowsError} triggers a L{DeprecationWarning}.z�twisted.python.win32.FakeWindowsError was deprecated in Twisted 21.2.0: Catch OSError and check presence of 'winerror' attribute.cS�
t�d�S)Nz%twisted.python.win32.FakeWindowsError�r�namedAnyrrrr
�<lambda>4�
zDDeprecationTests.test_deprecation_FakeWindowsError.<locals>.<lambda>N��assertWarns�DeprecationWarningr�__file__r
rrr
�!test_deprecation_FakeWindowsError,��z2DeprecationTests.test_deprecation_FakeWindowsErrorcCr)z;Importing C{WindowsError} triggers a L{DeprecationWarning}.z}twisted.python.win32.WindowsError was deprecated in Twisted 21.2.0: Catch OSError and check presence of 'winerror' attribute.cSr)Nz!twisted.python.win32.WindowsErrorrrrrr
r?rz@DeprecationTests.test_deprecation_WindowsError.<locals>.<lambda>Nrr
rrr
�test_deprecation_WindowsError7r$z.DeprecationTests.test_deprecation_WindowsErrorN)rrrrr#r%rrrr
r'srN)	r�twisted.pythonrr�
twisted.trialr�TestCaserrrrrr
�<module>s