0x1949 Team - FAZEMRX - MANAGER
Edit File: test_hypothesis.cpython-310.pyc
o �(_� � @ s d Z zddlZ[W n ey Y dS w ddlmZ ddlmZmZ zddlm Z W n ey9 ddl m Z Y nw ddlmZmZ ddl mZmZ ddlmZmZmZ d d lmZ ddlmZmZ dd lmZmZmZmZmZmZm Z m!Z!m"Z" G dd� de�Z#dS )z! Tests for hyperlink.hypothesis. � N)�digits)�Sequence�Text)�patch)�given�settings)�SearchStrategy�data)� IDNAError�check_label�encode� )�HyperlinkTestCase� )� DecodedURL� EncodedURL) �DrawCallable� composite�decoded_urls�encoded_urls�hostname_labels� hostnames� idna_text�paths�port_numbersc @ s, e Zd ZdZee� �dd� �Zee� �dd� �Zee � �dd� �Z ee dd ��d d� �Zee� �dd � �Z ee� �edd�dd� ��Zeedd��dd� �Zee� �dd� �Zeedd��dd� �Zeedd��dd� �Zeeddd��dd� �Zee� �d d!� �Zee� �d"d#� �Zee� �d$d%� �Zd&S )'�TestHypothesisStrategiesz1 Tests for hyperlink.hypothesis. c C s, zt |� W dS ty td�|���w )zD idna_text() generates IDNA-encodable text. zInvalid IDNA text: {!r}N)�idna_encoder �AssertionError�format)�self�text� r! �@/usr/lib/python3/dist-packages/hyperlink/test/test_hypothesis.py�test_idna_text_valid- s �z-TestHypothesisStrategies.test_idna_text_validc C s0 | � t|jtdd�� | � t|jtdd�� dS )zO idna_text() raises AssertionError if min_size is < 1. r )�min_size)�max_sizeN)�assertRaisesr �drawr )r r r! r! r"