Current File : //usr/lib/python3/dist-packages/jsonschema/tests/__pycache__/test_validators.cpython-312.pyc |
�
`��d�& � � � d dl mZ d dlmZmZ d dlmZ d dlmZ d dl m
Z
d dlmZm
Z
d dlmZ d dlZd dlZd dlZd dlZd dlZd dlZd dlZd d lmZmZmZmZmZ 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#e"� Z$ G d� de"� Z% G d� de%e$e� Z& G d� de%e$e� Z' G d� de$e� Z( G d� de$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"� � Z1ej` G d-� d.e"� � Z2y)/� )�annotations)�deque�
namedtuple)�contextmanager)�Decimal)�BytesIO)�TestCase�mock)�pathname2urlN)�
FormatChecker�TypeChecker�
exceptions� protocols�
validators)�bugc # �l K � |D ]+ }|j dd� t j di |���� �- y �w)N�messagezYou told me to fail!� )�
setdefaultr �ValidationError)� validator�errors�instance�schema�eachs �B/usr/lib/python3/dist-packages/jsonschema/tests/test_validators.py�failr s8 � �� �� 1����� �#9�:��(�(�0�4�0�0�1�s �24c �r � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Zd� Z
d� Zd
� Zd� Zd� Zd� Zd� Zy)�TestCreateAndExtendc �H � | j | j t j t t j � � ddi| _ dt i| _ t � | _ t j | j
| j | j �� | _
y )N�$idzsome://meta/schemar )�meta_schemar �type_checker)�
addCleanup�assertEqualr �
_META_SCHEMAS�dictr"