+
    Df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      ww''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   
 ~~ww''5%%'/
 ;;=6)
x01]]8$E../2\!2 2 45;;=|?Q?Q?ST**,.EF//17;++-|<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5J6s   A 	A! A!