HEX
Server: Apache
System: Linux opal14.opalstack.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User: curbgloabal_opal (1234)
PHP: 8.1.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib64/python3.6/test/__pycache__/test_macurl2path.cpython-36.pyc
3


 \/�@s6ddlZddlZGdd�dej�Zedkr2ej�dS)�Nc@seZdZdd�Zdd�ZdS)�MacUrl2PathTestCasecCs�|jdtjd��|jdtjd��|jdtjd��|jdtjd��|jd	tjd
��|jttjd�|jdtjd��|jttjd
�|jdtjd��|jdtjd��|jdtjd��dS)Nz:index.htmlz
index.htmlz:bar:index.htmlzbar/index.htmlzfoo:bar:index.htmlz/foo/bar/index.htmlzfoo:barz	/foo/bar/��/zhttp://foo.comz
///index.htmlz//index.htmlz./index.htmlzfoo/../index.htmlz::index.htmlz
../index.html)�assertEqual�macurl2pathZurl2pathname�assertRaises�RuntimeError)�self�r
�(/usr/lib64/python3.6/test_macurl2path.py�test_url2pathnamesz%MacUrl2PathTestCase.test_url2pathnamecCs�|jdtjd��|jdtjd��|jdtjd��|jdtjd��|jd	tjd	��|jd	tjd
��|jdtjd��|jd
tjd��|jttjd�|jdtjd��dS)NZdrivezdrive:z	drive/dirz
drive:dir:zdrive/dir/filezdrive:dir:filez
drive/filez
drive:file�filez:file�dirz:dir:zdir/filez	:dir:filerzdir/../filez	dir::file)rrZpathname2urlrr)r	r
r
r�test_pathname2urlsz%MacUrl2PathTestCase.test_pathname2urlN)�__name__�
__module__�__qualname__rrr
r
r
rrs
r�__main__)rZunittestZTestCaserr�mainr
r
r
r�<module>s