Current File : //proc/self/root/lib/python3/dist-packages/twisted/test/__pycache__/test_shortcut.cpython-312.pyc |
�
Ϫ�f� � � � d Z ddlZddlZddlZddlmZ dZ ddlm Z ddl
mZ ej dd dk\ rd Z G d
� dej � Zy# e$ r dZY �3w xY w)z
Test win32 shortcut script
� N)�unittest)�shell)�shortcutz"Only runs on Windows with win32com� )� � zBroken on Python 3.7+.c � � e Zd ZeZdd�Zdd�Zy)�
ShortcutTestsNc � � t }t j j |� }t j
|� }| j
� dz }|j |� | j t j j |� � t j |� }|j t j � d }| j |t |� d j! � |j! � � y)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 �</usr/lib/python3/dist-packages/twisted/test/test_shortcut.py�test_createzShortcutTests.test_create s� � � ���w�w�'�'��5��
�
�
�|�
,���;�;�=�6�)��
�������������x�0�1�
�]�]�8�
$�����E�.�.�/��2�������\�!2� 2� 4�5�;�;�=�|�?Q�?Q�?S�T� c � � t j }t j j |� }t j � }t j |dd||d�� }| j � dz }|j |� | j t j j |� � t j |� }|j t j � d }| j# |t% |� d j'