o
    (_S                     @   sP   d dl mZ ddlmZ d dlmZmZmZ dZdZ	e	d Z
G dd	 d	eZd
S )    )unicode_literals   )HyperlinkTestCase)parse
EncodedURL
DecodedURLzhttp://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 Zd Zdd ZdS )TestURLc                 C   s   t t}t|tsJ |jdksJ |ddgksJ |jdks#J t tdd}t|ts0J |ddgks:J | t	 t t
}W d    n1 sNw   Y  t t
dd	}| t	 |j W d    d S 1 smw   Y  d S )
Nuserzotz23%u   frégF)decodedz23%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   
"zTestURL.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   