관리-도구
편집 파일: test_exceptions.cpython-311.pyc
� R�Dg�; � �� � d dl mZ d dlZd dlmZmZ d dlmZ G d� de� � Z G d� de� � Z G d � d e� � Z G d� de� � Z G d � de� � ZdS )� )�TestCaseN)�Draft4Validator� exceptions)�PY3c �D � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd S )� TestBestMatchc �2 � t |� � }t j |� � }t j t |� � � � }d}| � |� � � |� � � |� ||� � �� � |S )Nz:Didn't return a consistent best match! Got: {0} Then: {1})�msg)�listr � best_match�reversed�assertEqual� _contents�format)�self�errors�best� reversed_bestr s ��/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/jsonschema/tests/test_exceptions.pyr zTestBestMatch.best_match s� � ��f�����$�V�,�,��"�-�h�v�.>�.>�?�?� �M������N�N���m�5�5�7�7�� � �4��/�/� � � � � �� c �� � t ddddddiid�ii� � }| � |� ddg ii� � � � }| � |j d� � d S ) N� properties�foo� �bar�type�object)� minPropertiesr r �r r �iter_errorsr � validator�r r! r s r �(test_shallower_errors_are_better_matchesz6TestBestMatch.test_shallower_errors_are_better_matches s� � �#���)*�',�v�x�.@�&A�� �� � � � � ���y�4�4�e�e�R�[�5I�J�J�K�K��������9�9�9�9�9r c �� � t dddiddigddiddigd�� � }| � |� i � � � � }| � |j d� � dS )zn A property you *must* match is probably better than one you have to match a part of. r r �string�number)r �anyOf�oneOfr Nr r"