Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/twisted/python/test/__pycache__/test_win32.cpython-39.pyc
Ðазад
a k�h� � @ sH d Z ddlmZmZ ddlmZ G dd� dej�ZG dd� dej�ZdS ) z$ Tests for L{twisted.python.win32}. � )�reflect�win32)�unittestc @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) �CommandLineQuotingTestsz$ Tests for L{cmdLineQuote}. c C s | � t�d�d� dS )zq Calling C{cmdLineQuote} with an argument with no spaces returns the argument unchanged. Zan_argumentN�ZassertEqualr ZcmdLineQuote��self� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/twisted/python/test/test_win32.py�test_argWithoutSpaces s z-CommandLineQuotingTests.test_argWithoutSpacesc C s | � t�d�d� dS )z Calling C{cmdLineQuote} with an argument containing spaces returns the argument surrounded by quotes. zAn Argumentz "An Argument"Nr r r r r �test_argWithSpaces s z*CommandLineQuotingTests.test_argWithSpacesc C s | � t�d�d� dS )ze Calling C{cmdLineQuote} with an empty string returns a quoted empty string. � z""Nr r r r r �test_emptyStringArg s z+CommandLineQuotingTests.test_emptyStringArgN)�__name__� __module__�__qualname__�__doc__r r r r r r r r s r c @ s e Zd ZdZdd� Zdd� ZdS )�DeprecationTestsz2 Tests for deprecated (Fake)WindowsError. c C s | � tdtjdd� � dS )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 S s t �d�S )Nz%twisted.python.win32.FakeWindowsError�r ZnamedAnyr r r r �<lambda>4 � zDDeprecationTests.test_deprecation_FakeWindowsError.<locals>.<lambda>N�ZassertWarns�DeprecationWarningr �__file__r r r r �!test_deprecation_FakeWindowsError, s �z2DeprecationTests.test_deprecation_FakeWindowsErrorc C s | � tdtjdd� � dS )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 S s t �d�S )Nz!twisted.python.win32.WindowsErrorr r r r r r ? r z@DeprecationTests.test_deprecation_WindowsError.<locals>.<lambda>Nr r r r r �test_deprecation_WindowsError7 s �z.DeprecationTests.test_deprecation_WindowsErrorN)r r r r r r r r r r r '