Your IP : 216.73.216.85
��Yf/ � @ sK d d l Z d d l Z Gd d � d e j � Z e d k rG e j � d S)� Nc @ s( e Z d Z d d � Z d d � Z d S)�MacUrl2PathTestCasec C s | j d t j d � � | j d t j d � � | j d t j d � � | j d t j d � � | j d t j d
� � | j t t j d � | j d t j d � � | j t t j d
� | j d t j d � � | j d t j d � � | j d t j d � � 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
�:/opt/alt/python35/lib64/python3.5/test/test_macurl2path.py�test_url2pathname s z%MacUrl2PathTestCase.test_url2pathnamec C s� | j d t j d � � | j d t j d � � | j d t j d � � | j d t j d � � | j d t j d � � | j d t j d
� � | j d t j d � � | j d
t j d � � | j t t j d � | j d t j d � � 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