Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/hyperlink/test/__pycache__/test_hypothesis.cpython-39.pyc
Ðазад
a j�h� � @ s d Z zddlZ[W n ey$ Y n�0 ddlmZ ddlmZmZ zddlm Z W n eyp ddl m Z Y n0 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 s2 zt |� W n ty, td�|���Y n0 dS )zD idna_text() generates IDNA-encodable text. zInvalid IDNA text: {!r}N)�idna_encoder �AssertionError�format)�self�text� r! ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-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)ZassertRaisesr �drawr )r r r! r! r"