Your IP : 216.73.216.85


Current Path : /opt/alt/python35/lib64/python3.5/test/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/test/__pycache__/test_macurl2path.cpython-35.opt-2.pyc



���]/�@sKddlZddlZGdd�dej�ZedkrGej�dS)�Nc@s(eZdZdd�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�macurl2path�url2pathname�assertRaises�RuntimeError)�self�r�5/opt/alt/python35/lib64/python3.5/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)rr�pathname2urlrr	)r
rrr�test_pathname2urlsz%MacUrl2PathTestCase.test_pathname2urlN)�__name__�
__module__�__qualname__r
rrrrrrs
r�__main__)rZunittestZTestCaserr�mainrrrr�<module>s