관리-도구
편집 파일: test_validators.cpython-311.pyc
� �܋f�� � �� � d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z d dl Z d dlZd dlZd dl Z d dlZd dlmZ d dlZd dlmZmZmZmZ d d lmZmZ d d lmZ d� Z G d� d e� � Z G d� de� � Z G d� de � � Z G d� de � � Z G d� de � � Z G d� de!� � Z" G d� de"e!� � Z# G d� de!� � Z$ G d� de$e#e � � Z% G d� de$e#e � � Z& G d � d!e#e � � Z' G d"� d#e#e � � Z( G d$� d%e� � Z) G d&� d'e� � Z* G d(� d)e� � Z+d*� Z,ej- G d+� d,e!� � � � Z.ej- G d-� d.e!� � � � Z/dS )/� )�deque)�contextmanager)�Decimal)�BytesIO)�TestCaseN)�SynchronousTestCase)� FormatChecker�TypeChecker� exceptions� validators)�PY3�pathname2url)�bugc # �d K � |� |� � st j d� � V � d S d S )N�Whoops!)� startswithr �ValidationError)� validatorr �instance�schemas �q/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/jsonschema/tests/test_validators.pyr r sC � � � ����z�*�*� 5��(��4�4�4�4�4�4�4�5� 5� c �P � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z dS ) �TestCreateAndExtendc �* � | � | j t j t t j � � � � ddi| _ dt i| _ t � � | _ t j | j | j | j �� � | _ d S )N�$idzsome://meta/schemar ��meta_schemar �type_checker)� addCleanup�assertEqualr �meta_schemas�dictr r r r �create� Validator��selfs r �setUpzTestCreateAndExtend.setUp s� � �������#���(�)�)� � � � #�$8�9���(�*�5���'�M�M���#�*��(����*� � � ����r c � � | � | j j | j j | j j f| j | j | j f� � d S �N)r! r% � VALIDATORS�META_SCHEMA�TYPE_CHECKERr r r r&