%PDF- %PDF-
Direktori : /lib/python3/dist-packages/twisted/python/test/__pycache__/ |
Current File : //lib/python3/dist-packages/twisted/python/test/__pycache__/test_win32.cpython-312.pyc |
� Ϫ�f � �x � d Z ddlmZmZ ddlmZ G d� dej � Z G d� dej � Zy) z$ Tests for L{twisted.python.win32}. � )�reflect�win32)�unittestc �( � e Zd ZdZdd�Zdd�Zdd�Zy)�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. zAn 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 Zd ZdZdd�Zdd�Zy)�DeprecationTestsz2 Tests for deprecated (Fake)WindowsError. Nc �R � | j t dt 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'