�
�r�c�& � �� � 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/ej0 G d+� d,e"� � � � Z1ej0 G d-� d.e"� � � � Z2dS )/� )�annotations)�deque�
namedtuple)�contextmanager)�Decimal)�BytesIO)�TestCase�mock)�pathname2urlN)�
FormatChecker�TypeChecker�
exceptions� protocols�
validators)�bugc # �f K � |D ]+}|� dd� � t j di |��V � �,d S )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 sT � � � �� 1� 1����� �#9�:�:�:��(�0�0�4�0�0�0�0�0�0�1� 1� c �t � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Zd� Z
d� Zd
� Zd� Zd� Zd� Zd� ZdS )�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� � �������$���)�*�*�
�
�
� "�#7�8���!�4�.���'�M�M���#�*��(����*�
�
�
����r c � � | � | j j | j j | j j f| j | j | j f� � d S �N)r& |