+
    üÐj¢  ã                   óÈ   € R t ^ RIt^ RIt^ RIt^ RIHt Rt ^ RIH	t	 ^ RI
Ht ]P                  R,          R
8¼  d   Rt ! R R	]P                  4      tR#   ] d    Rt L<i ; i)z
Test win32 shortcut script
N)Úunittest)Úshell)Úshortcutz"Only runs on Windows with win32com:é    é   NzBroken on Python 3.7+.c                   óH   a € ] tR t^t o ]tV 3R lR ltV 3R lR ltRtV t	R# )ÚShortcutTestsc                ó   <€ V ^8„  d   QhRR/# ©r   ÚreturnN© )ÚformatÚ__classdict__s   "€Ú</usr/lib/python3/dist-packages/twisted/test/test_shortcut.pyÚ__annotate__ÚShortcutTests.__annotate__   s   ø€ ÷ Uñ U˜Tñ Uó    c                ó  € \         p\        P                  P                  V4      p\        P
                  ! V4      pV P                  4       R,           pVP                  V4       V P                  \        P                  P                  V4      4       \        P                  ! V4      pVP                  \        P                  4      ^ ,          pV P                  V\        V4      ) R P!                  4       VP!                  4       4       R# )z
Create a simple shortcut.
ú.lnkN)Ú__file__ÚosÚpathÚbasenamer   ÚShortcutÚmktempÚsaveÚ
assertTrueÚexistsÚopenÚGetPathr   ÚSLGP_RAWPATHÚassertEqualÚlenÚlower)ÚselfÚtestFilenameÚbaseFileNameÚs1ÚtempnameÚscÚscPaths   &      r   Útest_createÚShortcutTests.test_create   s»   € ô  ˆÜ—w‘w×'Ñ'¨Ó5ˆÜ×Ò˜|Ó,ˆØ—;‘;“= 6Õ)ˆØ
�‰�ÔØ�‰œŸ™Ÿ™ xÓ0Ô1Ü�]Š]˜8Ó$ˆØ—‘œE×.Ñ.Ó/°Õ2ˆØ×Ñ˜¤ \Ó!2Ð 2Ð 4Ð5×;Ñ;Ó=¸|×?QÑ?QÓ?SÖTr   c                ó   <€ V ^8„  d   QhRR/# r
   r   )r   r   s   "€r   r   r   (   s   ø€ ÷ =ñ =¨4ñ =r   c           	     ó$  € \         P                  p\        P                  P	                  V4      p\
        P                  ! 4       p\        P                  ! VRRVV^R7      pV P                  4       R,           pVP                  V4       V P                  \        P                  P                  V4      4       \        P                  ! V4      pVP                  \        P                   4      ^ ,          pV P#                  V\%        V4      ) R P'                  4       VP'                  4       4       V P#                  VP)                  4       R4       V P#                  VP+                  4       V4       V P#                  VP-                  4       V^34       R# )zB
Create a shortcut to the Python executable,
and set some values.
z-VzThe Python executable)r   Ú	argumentsÚdescriptionÚ
workingdirÚiconpathÚiconidxr   N)ÚsysÚ
executabler   r   r   ÚtempfileÚ
gettempdirr   r   r   r   r   r   r   r   r   r    r!   r"   r#   ÚGetDescriptionÚGetWorkingDirectoryÚGetIconLocation)r$   r%   r&   ÚtempDirr'   r(   r)   r*   s   &       r   Útest_createPythonShortcutÚ'ShortcutTests.test_createPythonShortcut(   s1  € ô
 —~‘~ˆÜ—w‘w×'Ñ'¨Ó5ˆÜ×%Ò%Ó'ˆÜ×ÒØØØ/ØØØô
ˆð —;‘;“= 6Õ)ˆØ
�‰�ÔØ�‰œŸ™Ÿ™ xÓ0Ô1Ü�]Š]˜8Ó$ˆØ—‘œE×.Ñ.Ó/°Õ2ˆØ×Ñ˜¤ \Ó!2Ð 2Ð 4Ð5×;Ñ;Ó=¸|×?QÑ?QÓ?SÔTØ×Ñ˜×*Ñ*Ó,Ð.EÔFØ×Ñ˜×/Ñ/Ó1°7Ô;Ø×Ñ˜×+Ñ+Ó-°¸¨|Ö<r   r   N)
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú
skipReasonÚskipr+   r<   Ú__static_attributes__Ú__classdictcell__)r   s   @r   r   r      s    ø‡ € Ø€D÷Uð U÷=ö =r   r   )é   é   )Ú__doc__Úos.pathr   r4   r6   Útwisted.trialr   rB   Úwin32com.shellr   Útwisted.pythonr   ÚImportErrorÚversion_infoÚTestCaser   r   r   r   Ú<module>rP      sj   ðñó Û 
Û å "à€
ð6Ý$å'ð ×Ñ�CÕ˜FÔ"Ø)€Jô)=�H×%Ñ%ö )=øð ô 6Ø5‚Jð6ús   ˜A Á	A!Á A!