HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /lib/python3/dist-packages/jsonschema/tests/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/jsonschema/tests/__pycache__/test_deprecations.cpython-311.pyc
�

�r�c=��:�ddlmZddlmZGd�de��ZdS)�)�TestCase)�
validatorsc�8�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	dS)	�TestDeprecationsc�*�|�t��5}ddlm}ddd��n#1swxYwY|�|jt��|�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�wrs   �D/usr/lib/python3/dist-packages/jsonschema/tests/test_deprecations.py�test_versionzTestDeprecations.test_versions���
�
�
�0�
1�
1�	/�Q�.�.�.�.�.�.�	/�	/�	/�	/�	/�	/�	/�	/�	/�	/�	/����	/�	/�	/�	/�	
�����X�.�.�.������	�N�N�%�%�@�
�
�	
�	
�	
�	
�	
��.�2�2c�*�|�t��5}ddlm}ddd��n#1swxYwY|�|jt��|�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.validatorsrrr
rrrrr)rrrs   r�test_validators_ErrorTreez*TestDeprecations.test_validators_ErrorTrees����
�
�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�
�
�	
�	
�	
�	
�	
rc�v�|�t��5}tj}ddd��n#1swxYwY|�|tj��|�|jt��|�t|j	���
d����dS)za
        As of v4.0.0, accessing jsonschema.validators.validators is
        deprecated.
        Nz8Accessing jsonschema.validators.validators is deprecated)r	r
rr�_VALIDATORSr
rrrrr�rr�values   r�test_validators_validatorsz+TestDeprecations.test_validators_validators&s����
�
�0�
1�
1�	*�Q��)�E�	*�	*�	*�	*�	*�	*�	*�	*�	*�	*�	*����	*�	*�	*�	*�����
� 6�7�7�7������X�.�.�.������	�N�N�%�%�J�
�
�	
�	
�	
�	
�	
��
4�8�8c�v�|�t��5}tj}ddd��n#1swxYwY|�|tj��|�|jt��|�t|j
���d����dS)zc
        As of v4.0.0, accessing jsonschema.validators.meta_schemas is
        deprecated.
        Nz:Accessing jsonschema.validators.meta_schemas is deprecated)r	r
r�meta_schemasr�
_META_SCHEMASr
rrrrrrs   r�test_validators_meta_schemasz-TestDeprecations.test_validators_meta_schemas7s����
�
�0�
1�
1�	,�Q��+�E�	,�	,�	,�	,�	,�	,�	,�	,�	,�	,�	,����	,�	,�	,�	,�����
� 8�9�9�9������X�.�.�.������	�N�N�%�%�L�
�
�	
�	
�	
�	
�	
r!c��tj�i��}|�t��5}|�d��5	ddd��n#1swxYwYddd��n#1swxYwY|�|jt��|�	t|j���d����dS)zC
        As of v4.0.0, RefResolver.in_scope is deprecated.
        �fooNz.jsonschema.RefResolver.in_scope is deprecated )
r�RefResolver�from_schemar	r
�in_scoperr
rrrrr)r�resolverrs   r�test_RefResolver_in_scopez*TestDeprecations.test_RefResolver_in_scopeHsE��
�)�5�5�b�9�9��
�
�
�0�
1�
1�	�Q��"�"�5�)�)�
�
��
�
�
�
�
�
�
�
�
�
�
����
�
�
�
�	�	�	�	�	�	�	�	�	�	�	����	�	�	�	�	
�����X�.�.�.������	�N�N�%�%�@�
�
�	
�	
�	
�	
�	
s5�A5�A�A5�A"	�"A5�%A"	�&A5�5A9�<A9c��tji��}|�t��5}|�dddi��}ddd��n#1swxYwY|�|��|�|jt��|�	t|j���d����dS)zz
        As of v4.0.0, calling is_valid with two arguments (to provide a
        different schema) is deprecated.
        r'�type�numberNz5Passing a schema to Validator.is_valid is deprecated )
r�Draft7Validatorr	r
�is_valid�assertFalserr
rrrrr)r�	validatorr�results    r�%test_Validator_is_valid_two_argumentsz6TestDeprecations.test_Validator_is_valid_two_argumentsYs���.�r�2�2�	�
�
�
�0�
1�
1�	C�Q��'�'����/A�B�B�F�	C�	C�	C�	C�	C�	C�	C�	C�	C�	C�	C����	C�	C�	C�	C�	
���� � � ������X�.�.�.������	�N�N�%�%�G�
�
�	
�	
�	
�	
�	
s�A�A�Ac��tji��}|�t��5}|�dddi��\}ddd��n#1swxYwY|�|jd��|�|jt��|�	t|j���d����dS)z}
        As of v4.0.0, calling iter_errors with two arguments (to provide a
        different schema) is deprecated.
        r'r.r/Nz8Passing a schema to Validator.iter_errors is deprecated )
rr0r	r
�iter_errorsrr3r
rrrrr)rr3r�errors    r�(test_Validator_iter_errors_two_argumentsz9TestDeprecations.test_Validator_iter_errors_two_argumentsks���.�r�2�2�	�
�
�
�0�
1�
1�	F�Q��*�*�5�6�8�2D�E�E�F�E�	F�	F�	F�	F�	F�	F�	F�	F�	F�	F�	F����	F�	F�	F�	F�	
�����&�1�1�1������X�.�.�.������	�N�N�%�%�J�
�
�	
�	
�	
�	
�	
s�A�A�AN)
�__name__�
__module__�__qualname__rrr r%r,r5r9��rrrs}������

�

�

�
�
�
� 
�
�
�"
�
�
�"
�
�
�"
�
�
�$
�
�
�
�
r>rN)�unittestrrrrr=r>r�<module>r@sg��������!�!�!�!�!�!�u
�u
�u
�u
�u
�x�u
�u
�u
�u
�u
r>