| Server IP : 118.27.122.248 / Your IP : 216.73.216.238 Web Server : Apache System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64 User : c9415830 ( 11735) PHP Version : 8.4.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python36/lib64/python3.6/test/__pycache__/ |
Upload File : |
3 �w2_/ � @ 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 �:/opt/alt/python36/lib64/python3.6/test/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