File: //lib/python3/dist-packages/hyperlink/test/__pycache__/test_parse.cpython-310.pyc
o
�(_S � @ 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�sJ �|jdksJ �|�d�dgksJ �|jdks#J �t tdd�}t|t�s0J �|�d�dgks:J �| �t �� t t
�}W d � n1 sNw Y t t
dd �}| �t �� |j W d � d S 1 smw Y d S )
N�user�zotz23%u frégF)�decodedz23%25T)�lazy)r � TOTAL_URL�
isinstancer r �get�fragmentr �assertRaises�UnicodeDecodeError�UNDECODABLE_FRAG_URL)�self�purl�purl2�purl3� 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)�
__future__r �commonr � hyperlinkr r r � BASIC_URLr
r r r r r r �<module> s �