403Webshell
Server IP : 195.114.193.97  /  Your IP : 216.73.217.93
Web Server : LiteSpeed
System : Linux host 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64
User : sembi4241 ( 1126)
PHP Version : 8.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/twisted/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/twisted/test/__pycache__/test_shortcut.cpython-310.pyc
o

�b��@s�dZddlZddlZddlZddlmZdZzddlm	Z	ddl
mZWney/dZYnwej
dd�dkr;d	ZGd
d�dej�ZdS)z
Test win32 shortcut script
�N)�unittest)�shell)�shortcutz"Only runs on Windows with win32com�)��zBroken on Python 3.7+.c@s eZdZeZdd�Zdd�ZdS)�
ShortcutTestscCs�t}tj�|�}t�|�}|��d}|�|�|�tj�	|��t�
|�}|�tj
�d}|�|t|�d���|���dS)z+
        Create a simple shortcut.
        �.lnkrN)�__file__�os�path�basenamer�Shortcut�mktemp�save�
assertTrue�exists�open�GetPathr�SLGP_RAWPATH�assertEqual�len�lower)�self�testFilename�baseFileName�s1�tempname�sc�scPath�r �</usr/lib/python3/dist-packages/twisted/test/test_shortcut.py�test_creates


&zShortcutTests.test_createcCs�tj}tj�|�}t��}tj|dd||dd�}|�	�d}|�
|�|�tj�|��t�
|�}|�tj�d}|�|t|�d���|���|�|��d�|�|��|�|�|��|df�dS)zZ
        Create a shortcut to the Python executable,
        and set some values.
        z-VzThe Python executable�)r�	arguments�description�
workingdir�iconpath�iconidxr	rN)�sys�
executablerrr
�tempfile�
gettempdirrrrrrrrrrrrrr�GetDescription�GetWorkingDirectory�GetIconLocation)rrr�tempDirrrrrr r r!�test_createPythonShortcut(s(�

"z'ShortcutTests.test_createPythonShortcutN)�__name__�
__module__�__qualname__�
skipReason�skipr"r1r r r r!rsr)�__doc__�os.pathrr)r+�
twisted.trialrr5�win32com.shellr�twisted.pythonr�ImportError�version_info�TestCaserr r r r!�<module>s�

Youez - 2016 - github.com/yon3zu
LinuXploit