Ϫf xdZddlmZmZddlmZGddej ZGddej Zy) z$ Tests for L{twisted.python.win32}. )reflectwin32)unittestc(eZdZdZddZddZddZy)CommandLineQuotingTestsz$ Tests for L{cmdLineQuote}. NcN|jtjddy)zq Calling C{cmdLineQuote} with an argument with no spaces returns the argument unchanged. an_argumentN assertEqualr cmdLineQuoteselfs @/usr/lib/python3/dist-packages/twisted/python/test/test_win32.pytest_argWithoutSpacesz-CommandLineQuotingTests.test_argWithoutSpacess ++M:MJcN|jtjddy)z Calling C{cmdLineQuote} with an argument containing spaces returns the argument surrounded by quotes. z An Argumentz "An Argument"Nr r s rtest_argWithSpacesz*CommandLineQuotingTests.test_argWithSpacess ++M:OLrcN|jtjddy)ze Calling C{cmdLineQuote} with an empty string returns a quoted empty string. z""Nr r s rtest_emptyStringArgz+CommandLineQuotingTests.test_emptyStringArgs ++B/6rreturnN)__name__ __module__ __qualname____doc__rrrrrrr sKM7rrc eZdZdZddZddZy)DeprecationTestsz2 Tests for deprecated (Fake)WindowsError. NcR|jtdtjdy)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,tjdS)Nz%twisted.python.win32.FakeWindowsErrorrnamedAnyrrrzDDeprecationTests.test_deprecation_FakeWindowsError..4sG$$%LMrN assertWarnsDeprecationWarningr__file__r s r!test_deprecation_FakeWindowsErrorz2DeprecationTests.test_deprecation_FakeWindowsError,s'   H    M  rcR|jtdtjdy)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,tjdS)Nz!twisted.python.win32.WindowsErrorr"rrrr$z@DeprecationTests.test_deprecation_WindowsError..?sG$$%HIrNr%r s rtest_deprecation_WindowsErrorz.DeprecationTests.test_deprecation_WindowsError7s'   H    I  rr)rrrrr)r,rrrrr's    rrN) rtwisted.pythonrr twisted.trialrTestCaserrrrrr0s6*"7h//76 x(( r