File: //proc/self/root/usr/lib/python3/dist-packages/hyperlink/test/__pycache__/test_parse.cpython-38.pyc
U
�S�\9 � @ sP d dl mZ ddlmZ d dlmZmZmZ dZdZ e d Z
G dd � d e�Zd
S )� )�unicode_literals� )�HyperlinkTestCase)�parse�
EncodedURL�
DecodedURLzhttp://example.com/#ua https://%75%73%65%72:%00%00%00%00@xn--bcher-kva.ch:8080/a/nice%20nice/./path/?zot=23%25&zut#frégz%C3c @ s e Zd Zdd� ZdS )�TestURLc C s� t t�}t|t�st�|jdks$t�|�d�dgks8t�|jdksFt�t tdd�}t|t�s`t�|�d�dgkstt�| � t
�� t t�}W 5 Q R X t tdd �}| � t
�� |j W 5 Q R X d S )
N�userZzotz23%u frégF)Zdecodedz23%25T)Zlazy)r � TOTAL_URL�
isinstancer �AssertionErrorr �getZfragmentr ZassertRaises�UnicodeDecodeError�UNDECODABLE_FRAG_URL)�selfZpurlZpurl2Zpurl3� r �;/usr/lib/python3/dist-packages/hyperlink/test/test_parse.py�
test_parse s zTestURL.test_parseN)�__name__�
__module__�__qualname__r r r r r r s r N)Z
__future__r �commonr Z hyperlinkr r r Z BASIC_URLr
r r r r r r �<module> s