§
    Ètºf	  ã                   ór   — d Z ddlmZmZ ddlmZ  G d„ dej        ¦  «        Z G d„ dej        ¦  «        ZdS )	z$
Tests for L{twisted.python.win32}.
é    )ÚreflectÚwin32)Úunittestc                   ó*   — e Zd ZdZdd„Zdd„Zdd„ZdS )ÚCommandLineQuotingTestsz$
    Tests for L{cmdLineQuote}.
    ÚreturnNc                 óV   — |                       t          j        d¦  «        d¦  «         dS )zq
        Calling C{cmdLineQuote} with an argument with no spaces returns
        the argument unchanged.
        Úan_argumentN©ÚassertEqualr   ÚcmdLineQuote©Úselfs    ú]/var/www/surfInsights/venv3-11/lib/python3.11/site-packages/twisted/python/test/test_win32.pyÚtest_argWithoutSpacesz-CommandLineQuotingTests.test_argWithoutSpaces   s+   € ð
 	×Ò�Ô+¨MÑ:Ô:¸MÑJÔJÐJÐJÐJó    c                 óV   — |                       t          j        d¦  «        d¦  «         dS )z
        Calling C{cmdLineQuote} with an argument containing spaces returns
        the argument surrounded by quotes.
        zAn Argumentz"An Argument"Nr   r   s    r   Útest_argWithSpacesz*CommandLineQuotingTests.test_argWithSpaces   s+   € ð
 	×Ò�Ô+¨MÑ:Ô:¸OÑLÔLÐLÐLÐLr   c                 óV   — |                       t          j        d¦  «        d¦  «         dS )ze
        Calling C{cmdLineQuote} with an empty string returns a quoted empty
        string.
        Ú z""Nr   r   s    r   Útest_emptyStringArgz+CommandLineQuotingTests.test_emptyStringArg   s+   € ð
 	×Ò�Ô+¨BÑ/Ô/°Ñ6Ô6Ð6Ð6Ð6r   ©r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   © r   r   r   r      sb   € € € € € ðð ðKð Kð Kð KðMð Mð Mð Mð7ð 7ð 7ð 7ð 7ð 7r   r   c                   ó"   — e Zd ZdZdd„Zdd„ZdS )ÚDeprecationTestsz2
    Tests for deprecated (Fake)WindowsError.
    r   Nc                 óV   — |                       t          dt          j        d„ ¦  «         dS )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                  ó*   — t          j        d¦  «        S )Nz%twisted.python.win32.FakeWindowsError©r   ÚnamedAnyr   r   r   ú<lambda>zDDeprecationTests.test_deprecation_FakeWindowsError.<locals>.<lambda>4   s   € •GÔ$Ð%LÑMÔM€ r   N©ÚassertWarnsÚDeprecationWarningr   Ú__file__r   s    r   Ú!test_deprecation_FakeWindowsErrorz2DeprecationTests.test_deprecation_FakeWindowsError,   s;   € ð 	×ÒÝðHåÔØMÐMñ	
ô 	
ð 	
ð 	
ð 	
r   c                 óV   — |                       t          dt          j        d„ ¦  «         dS )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                  ó*   — t          j        d¦  «        S )Nz!twisted.python.win32.WindowsErrorr"   r   r   r   r$   z@DeprecationTests.test_deprecation_WindowsError.<locals>.<lambda>?   s   € •GÔ$Ð%HÑIÔI€ r   Nr%   r   s    r   Útest_deprecation_WindowsErrorz.DeprecationTests.test_deprecation_WindowsError7   s;   € ð 	×ÒÝðHåÔØIÐIñ	
ô 	
ð 	
ð 	
ð 	
r   r   )r   r   r   r   r)   r,   r   r   r   r   r   '   sF   € € € € € ðð ð	
ð 	
ð 	
ð 	
ð	
ð 	
ð 	
ð 	
ð 	
ð 	
r   r   N)	r   Útwisted.pythonr   r   Útwisted.trialr   ÚTestCaser   r   r   r   r   ú<module>r0      sŸ   ððð ð *Ð )Ð )Ð )Ð )Ð )Ð )Ð )Ø "Ð "Ð "Ð "Ð "Ð "ð7ð 7ð 7ð 7ð 7˜hÔ/ñ 7ô 7ð 7ð6
ð 
ð 
ð 
ð 
�xÔ(ñ 
ô 
ð 
ð 
ð 
r   