HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ip-172-26-0-120 6.17.0-1009-aws #9~24.04.2-Ubuntu SMP Fri Mar 6 23:50:29 UTC 2026 x86_64
User: ubuntu (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/twisted/python/test/__pycache__/test_win32.cpython-312.pyc
�

Ϫ�f	��x�dZddlmZmZddlmZGd�dej�ZGd�dej�Zy)	z$
Tests for L{twisted.python.win32}.
�)�reflect�win32)�unittestc�(�eZdZdZdd�Zdd�Zdd�Zy)�CommandLineQuotingTestsz$
    Tests for L{cmdLineQuote}.
    Nc�N�|jtjd�d�y)zq
        Calling C{cmdLineQuote} with an argument with no spaces returns
        the argument unchanged.
        �an_argumentN��assertEqualr�cmdLineQuote��selfs �@/usr/lib/python3/dist-packages/twisted/python/test/test_win32.py�test_argWithoutSpacesz-CommandLineQuotingTests.test_argWithoutSpacess��
	
����+�+�M�:�M�J�c�N�|jtjd�d�y)z
        Calling C{cmdLineQuote} with an argument containing spaces returns
        the argument surrounded by quotes.
        zAn Argumentz
"An Argument"Nr
r
s r�test_argWithSpacesz*CommandLineQuotingTests.test_argWithSpacess��
	
����+�+�M�:�O�Lrc�N�|jtjd�d�y)ze
        Calling C{cmdLineQuote} with an empty string returns a quoted empty
        string.
        �z""Nr
r
s r�test_emptyStringArgz+CommandLineQuotingTests.test_emptyStringArgs��
	
����+�+�B�/��6r��returnN)�__name__�
__module__�__qualname__�__doc__rrr�rrrrs���K�M�7rrc� �eZdZdZdd�Zdd�Zy)�DeprecationTestsz2
    Tests for deprecated (Fake)WindowsError.
    Nc�R�|jtdtjd��y)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.c�,�tjd�S)Nz%twisted.python.win32.FakeWindowsError�r�namedAnyrrr�<lambda>zDDeprecationTests.test_deprecation_FakeWindowsError.<locals>.<lambda>4s��G�$�$�%L�M�rN��assertWarns�DeprecationWarningr�__file__r
s r�!test_deprecation_FakeWindowsErrorz2DeprecationTests.test_deprecation_FakeWindowsError,s'��	
����
H����M�	
rc�R�|jtdtjd��y)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.c�,�tjd�S)Nz!twisted.python.win32.WindowsErrorr"rrrr$[email protected]_deprecation_WindowsError.<locals>.<lambda>?s��G�$�$�%H�I�rNr%r
s r�test_deprecation_WindowsErrorz.DeprecationTests.test_deprecation_WindowsError7s'��	
����
H����I�	
rr)rrrrr)r,rrrrr's���	
�	
rrN)	r�twisted.pythonrr�
twisted.trialr�TestCaserrrrr�<module>r0s6���*�"�7�h�/�/�7�6
�x�(�(�
r