File: //lib64/python3.6/test/__pycache__/test_macurl2path.cpython-36.pyc
3
\/ � @ s6 d dl Z d dlZG dd� dej�Zedkr2ej� dS )� Nc @ s e Zd Zdd� Zdd� ZdS )�MacUrl2PathTestCasec C s� | j dtjd�� | j dtjd�� | j dtjd�� | j dtjd�� | j d tjd
�� | jttjd� | j dtjd�� | jttjd
� | j dtjd�� | j dtjd�� | j dtjd�� d S )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�macurl2pathZurl2pathname�assertRaises�RuntimeError)�self� r
�(/usr/lib64/python3.6/test_macurl2path.py�test_url2pathname s z%MacUrl2PathTestCase.test_url2pathnamec C s� | j dtjd�� | j dtjd�� | j dtjd�� | j dtjd�� | j d tjd �� | j d tjd
�� | j dtjd�� | j d
tjd�� | jttjd� | j dtjd�� d S )NZdrivezdrive:z drive/dirz
drive:dir:zdrive/dir/filezdrive:dir:filez
drive/filez
drive:file�filez:file�dirz:dir:zdir/filez :dir:filer zdir/../filez dir::file)r r Zpathname2urlr r )r r
r
r �test_pathname2url s z%MacUrl2PathTestCase.test_pathname2urlN)�__name__�
__module__�__qualname__r r r
r
r
r r s
r �__main__)r ZunittestZTestCaser r �mainr
r
r
r �<module> s