%PDF- %PDF-
Direktori : /lib/python3/dist-packages/jsonschema/tests/__pycache__/ |
Current File : //lib/python3/dist-packages/jsonschema/tests/__pycache__/test_exceptions.cpython-312.pyc |
� `��d�J � � � d dl mZ d dlZd dlmZ d dlmZ G d� de� Z G d� de� Z G d � d e� Z G d� de� Z G d � de� Zy)� )�TestCaseN)� exceptions)�_LATEST_VERSIONc �l � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z d� Zd � Zd� Zd� Zd� Zy)� TestBestMatchc �. � t t |� j |� � }t j t |� � }t j t |� � }| j |j � |j � d|� d|� �� |S )NzNo consistent best match! Got: z Then: ) �listr �iter_errorsr � best_match�iter�reversed�assertEqual� _contents)�self�instance�schema�errors�best� reversed_bests �B/usr/lib/python3/dist-packages/jsonschema/tests/test_exceptions.py� best_match_ofzTestBestMatch.best_match_of s� � ��o�f�-�9�9�(�C�D���$�$�T�&�\�2��"�-�-�h�v�.>�?� �����N�N���#�#�%�.�t�f�J�}�o�N� � �� c � � ddddddiid�ii}| j ddg ii|�� }| j |j d � y ) N� properties�foo� �bar�type�object)� minPropertiesr �r r r �r r � validator�r r r s r �(test_shallower_errors_are_better_matchesz6TestBestMatch.test_shallower_errors_are_better_matches s] � ���%&�#(�6�8�*<�"=��� �� �!�!�E�E�2�;�+?��!�O���������9r c � � dddiddigddiddigd�}| j i |�� }| j |j d� y) 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! r Nr"