Ë
    oj	  ã                   óx   — 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y)	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y)ÚCommandLineQuotingTestsz$
    Tests for L{cmdLineQuote}.
    Nc                 óN   — | j                  t        j                  d«      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_argWithoutSpaces   s   € ð
 	×Ñœ×+Ñ+¨MÓ:¸MÕJó    c                 óN   — | j                  t        j                  d«      d«       y)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ÕLr   c                 óN   — | j                  t        j                  d«      d«       y)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Ó/°Õ6r   ©ÚreturnN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   © r   r   r   r      s   „ ñóKóMô7r   r   c                   ó    — e Zd ZdZdd„Zdd„Zy)ÚDeprecationTestsz2
    Tests for deprecated (Fake)WindowsError.
    Nc                 óR   — | j                  t        dt        j                  d„ «       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                  ó,   — 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€ r   N©ÚassertWarnsÚDeprecationWarningr   Ú__file__r   s    r   Ú!test_deprecation_FakeWindowsErrorz2DeprecationTests.test_deprecation_FakeWindowsError,   s'   € ð 	×ÑÜðHä×ÑÙMõ	
r   c                 óR   — | j                  t        dt        j                  d„ «       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                  ó,   — t        j                  d«      S )Nz!twisted.python.win32.WindowsErrorr"   r   r   r   r$   z@DeprecationTests.test_deprecation_WindowsError.<locals>.<lambda>?   s   € ”G×$Ñ$Ð%HÓI€ r   Nr%   r   s    r   Útest_deprecation_WindowsErrorz.DeprecationTests.test_deprecation_WindowsError7   s'   € ð 	×ÑÜðHä×ÑÙIõ	
r   r   )r   r   r   r   r)   r,   r   r   r   r   r   '   s   „ ñó	
ô	
r   r   N)	r   Útwisted.pythonr   r   Útwisted.trialr   ÚTestCaser   r   r   r   r   ú<module>r0      s6   ðñ÷ *Ý "ô7˜h×/Ñ/ô 7ô6
�x×(Ñ(õ 
r   