
    tf	                     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}.ztwisted.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 7h/ 7 7 76
 
 
 
 
x( 
 
 
 
 
r   