Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/twisted/python/test/__pycache__/ |
Upload File : |
o �b� � @ 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. �an_argumentN��assertEqualr �cmdLineQuote��self� r �@/usr/lib/python3/dist-packages/twisted/python/test/test_win32.py�test_argWithoutSpaces � z-CommandLineQuotingTests.test_argWithoutSpacesc C � | � 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 r z*CommandLineQuotingTests.test_argWithSpacesc C r )ze Calling C{cmdLineQuote} with an empty string returns a quoted empty string. � z""Nr r r r r �test_emptyStringArg r 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 � | � 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 � t �d�S )Nz%twisted.python.win32.FakeWindowsError�r �namedAnyr r r r �<lambda>4 � zDDeprecationTests.test_deprecation_FakeWindowsError.<locals>.<lambda>N��assertWarns�DeprecationWarningr �__file__r r r r �!test_deprecation_FakeWindowsError, � �z2DeprecationTests.test_deprecation_FakeWindowsErrorc C r )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 r )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 r$ z.DeprecationTests.test_deprecation_WindowsErrorN)r r r r r# r% r r r r r '