§
    Ètºf¢  ã                   ó¸   — d Z ddlZddlZddlZddlmZ dZ	 ddlm	Z	 ddl
mZ n# e$ r dZY nw xY wej        dd…         dk    rd	Z G d
„ dej        ¦  «        ZdS )z
Test win32 shortcut script
é    N)Úunittest)Úshell)Úshortcutz"Only runs on Windows with win32comé   )é   é   zBroken on Python 3.7+.c                   ó"   — e Zd ZeZdd„Zdd„ZdS )ÚShortcutTestsÚreturnNc                 óH  — t           }t          j                             |¦  «        }t	          j        |¦  «        }|                      ¦   «         dz   }|                     |¦  «         |                      t          j         	                    |¦  «        ¦  «         t	          j
        |¦  «        }|                     t          j        ¦  «        d         }|                      |t          |¦  «         d…                              ¦   «         |                     ¦   «         ¦  «         dS )z+
        Create a simple shortcut.
        ú.lnkr   N)Ú__file__ÚosÚpathÚbasenamer   ÚShortcutÚmktempÚsaveÚ
assertTrueÚexistsÚopenÚGetPathr   ÚSLGP_RAWPATHÚassertEqualÚlenÚlower)ÚselfÚtestFilenameÚbaseFileNameÚs1ÚtempnameÚscÚscPaths          úY/var/www/surfInsights/venv3-11/lib/python3.11/site-packages/twisted/test/test_shortcut.pyÚtest_createzShortcutTests.test_create   sä   € õ  ˆÝ”w×'Ò'¨Ñ5Ô5ˆÝÔ˜|Ñ,Ô,ˆØ—;’;‘=”= 6Ñ)ˆØ
�Š�ÑÔÐØ�Š�œŸš xÑ0Ô0Ñ1Ô1Ð1ÝŒ]˜8Ñ$Ô$ˆØ—’�EÔ.Ñ/Ô/°Ô2ˆØ×Ò˜¥ \Ñ!2Ô!2Ð 2Ð 4Ð 4Ô5×;Ò;Ñ=Ô=¸|×?QÒ?QÑ?SÔ?SÑTÔTÐTÐTÐTó    c                 óx  — t           j        }t          j                             |¦  «        }t          j        ¦   «         }t          j        |dd||d¬¦  «        }|  	                    ¦   «         dz   }| 
                    |¦  «         |                      t          j                             |¦  «        ¦  «         t          j        |¦  «        }|                     t          j        ¦  «        d         }|                      |t%          |¦  «         d…                              ¦   «         |                     ¦   «         ¦  «         |                      |                     ¦   «         d¦  «         |                      |                     ¦   «         |¦  «         |                      |                     ¦   «         |df¦  «         dS )zZ
        Create a shortcut to the Python executable,
        and set some values.
        z-VzThe Python executableé   )r   Ú	argumentsÚdescriptionÚ
workingdirÚiconpathÚiconidxr   r   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_createPythonShortcutz'ShortcutTests.test_createPythonShortcut(   sz  € õ
 ”~ˆÝ”w×'Ò'¨Ñ5Ô5ˆÝÔ%Ñ'Ô'ˆÝÔØØØ/ØØØð
ñ 
ô 
ˆð —;’;‘=”= 6Ñ)ˆØ
�Š�ÑÔÐØ�Š�œŸš xÑ0Ô0Ñ1Ô1Ð1ÝŒ]˜8Ñ$Ô$ˆØ—’�EÔ.Ñ/Ô/°Ô2ˆØ×Ò˜¥ \Ñ!2Ô!2Ð 2Ð 4Ð 4Ô5×;Ò;Ñ=Ô=¸|×?QÒ?QÑ?SÔ?SÑTÔTÐTØ×Ò˜×*Ò*Ñ,Ô,Ð.EÑFÔFÐFØ×Ò˜×/Ò/Ñ1Ô1°7Ñ;Ô;Ð;Ø×Ò˜×+Ò+Ñ-Ô-°¸¨|Ñ<Ô<Ð<Ð<Ð<r&   )r   N)Ú__name__Ú
__module__Ú__qualname__Ú
skipReasonÚskipr%   r6   © r&   r$   r
   r
      sE   € € € € € Ø€DðUð Uð Uð Uð=ð =ð =ð =ð =ð =r&   r
   )Ú__doc__Úos.pathr   r.   r0   Útwisted.trialr   r:   Úwin32com.shellr   Útwisted.pythonr   ÚImportErrorÚversion_infoÚTestCaser
   r<   r&   r$   ú<module>rE      sè   ððð ð €€€Ø 
€
€
€
Ø €€€à "Ð "Ð "Ð "Ð "Ð "à€
ð6Ø$Ð$Ð$Ð$Ð$Ð$à'Ð'Ð'Ð'Ð'Ð'Ð'øØð 6ð 6ð 6Ø5€J€J€Jð6øøøð Ô�A�a�CÔ˜FÒ"Ð"Ø)€Jð)=ð )=ð )=ð )=ð )=�HÔ%ñ )=ô )=ð )=ð )=ð )=s   ˜% ¥/®/