�
�r�c= � �: � d dl mZ d dlmZ G d� de� � ZdS )� )�TestCase)�
validatorsc �8 � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z dS ) �TestDeprecationsc �* � | � t � � 5 }ddlm} ddd� � n# 1 swxY w Y | � |j t � � | � t |j � � �
d� � � � dS )zY
As of v4.0.0, __version__ is deprecated in favor of importlib.metadata.
r )�__version__Nz.Accessing jsonschema.__version__ is deprecated)�assertWarns�DeprecationWarning�
jsonschemar �assertEqual�filename�__file__�
assertTrue�str�warning�
startswith)�self�wr s �D/usr/lib/python3/dist-packages/jsonschema/tests/test_deprecations.py�test_versionzTestDeprecations.test_version s� � �
�
�
�0�
1�
1� /�Q�.�.�.�.�.�.� /� /� /� /� /� /� /� /� /� /� /���� /� /� /� /�
�����X�.�.�.������ �N�N�%�%�@�
�
�
�
�
�
�
� �.�2�2c �* � | � t � � 5 }ddlm} ddd� � n# 1 swxY w Y | � |j t � � | � t |j � � �
d� � � � dS )z�
As of v4.0.0, importing ErrorTree from jsonschema.validators is
deprecated in favor of doing so from jsonschema.exceptions.
r )� ErrorTreeNz<Importing ErrorTree from jsonschema.validators is deprecated)r r
�jsonschema.validatorsr r r
r r r r r )r r r s r �test_validators_ErrorTreez*TestDeprecations.test_validators_ErrorTree s� � � �
�
�0�
1�
1� 8�Q�7�7�7�7�7�7� 8� 8� 8� 8� 8� 8� 8� 8� 8� 8� 8���� 8� 8� 8� 8�
�����X�.�.�.������ �N�N�%�%�N�
�
�
�
�
�
�
r c �v � | � t � � 5 }t j }ddd� � n# 1 swxY w Y | � |t j � � | � |j t � � | � t |j � � �
d� � � � dS )za
As of v4.0.0, accessing jsonschema.validators.validators is
deprecated.
Nz8Accessing jsonschema.validators.validators is deprecated)r r
r r �_VALIDATORSr
r r r r r �r r �values r �test_validators_validatorsz+TestDeprecations.test_validators_validators& |