__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

���gJ;���SSKJr SSKJr SSKJrJr SSKrSSK	r	SSK
r
SSKrSSKr
SSKrSSKJrJrJrJr "SS\5rg)�)�contextmanager)�BytesIO)�TestCase�mockN)�
FormatChecker�
exceptions�	protocols�
validatorsc��\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
SrS
rSrSrSrSrSrSrSrSrSrSrSrg)�TestDeprecations�c��SnUR[U5nSSKJn SSS5 UR	W[
RRS55 UR	WR[5 g!,(df   N^=f)zI
As of v4.0.0, __version__ is deprecated in favor of importlib.metadata.
z.Accessing jsonschema.__version__ is deprecatedr)�__version__N�
jsonschema)
�assertWarnsRegex�DeprecationWarningrr�assertEqual�	importlib�metadata�version�filename�__file__)�self�message�wrs    �D/usr/lib/python3/dist-packages/jsonschema/tests/test_deprecations.py�test_version�TestDeprecations.test_versionsg��
C��
�
"�
"�#5�w�
?�1�.�@�	
����i�&8�&8�&@�&@��&N�O�������X�.�	@�
?�s�A8�8
Bc���SnUR[U5nSSKJn SSS5 UR	W[
R5 UR	WR[5 g!,(df   NO=f)z}
As of v4.0.0, importing ErrorTree from jsonschema.validators is
deprecated in favor of doing so from jsonschema.exceptions.
z2Importing ErrorTree from jsonschema.validators is r��	ErrorTreeN)rr�jsonschema.validatorsr!rrrr�rrrr!s    r�test_validators_ErrorTree�*TestDeprecations.test_validators_ErrorTrees\��G��
�
"�
"�#5�w�
?�1�7�@�	
����J�$8�$8�9�������X�.�	@�
?���A)�)
A7c���SnUR[U5nSSKJn SSS5 UR	W[
R5 UR	WR[5 g!,(df   NO=f)zy
As of v4.18.0, importing ErrorTree from the package root is
deprecated in favor of doing so from jsonschema.exceptions.
z9Importing ErrorTree directly from the jsonschema package rr N)rrrr!rrrrr#s    r�test_import_ErrorTree�&TestDeprecations.test_import_ErrorTree)s\��N��
�
"�
"�#5�w�
?�1�,�@�	
����J�$8�$8�9�������X�.�	@�
?�r&c���SnUR[U5nSSKJn SSS5 UR	W[
R5 UR	WR[5 g!,(df   NO=f)z{
As of v4.18.0, importing FormatError from the package root is
deprecated in favor of doing so from jsonschema.exceptions.
z;Importing FormatError directly from the jsonschema package r)�FormatErrorN)rrrr+rrrr)rrrr+s    r�test_import_FormatError�(TestDeprecations.test_import_FormatError6s\��P��
�
"�
"�#5�w�
?�1�.�@�	
����j�&<�&<�=�������X�.�	@�
?�r&c���SnUR[U5nSSKJn SSS5 UR	W[
R5 UR	WR[5 g!,(df   NO=f)zx
As of v4.19.0, importing Validator from the package root is
deprecated in favor of doing so from jsonschema.protocols.
z9Importing Validator directly from the jsonschema package r)�	ValidatorN)rrrr/rr	rr)rrrr/s    r�test_import_Validator�&TestDeprecations.test_import_ValidatorCs\��N��
�
"�
"�#5�w�
?�1�,�@�	
����I�$7�$7�8�������X�.�	@�
?�r&c��SnUR[U5n[RnSSS5 URW[R5 URWR
[5 g!,(df   NO=f)zI
As of v4.0.0, accessing jsonschema.validators.validators is
deprecated.
z8Accessing jsonschema.validators.validators is deprecatedN)rrr
r�_VALIDATORSrr�rrr�values    r�test_validators_validators�+TestDeprecations.test_validators_validatorsPsd��M��
�
"�
"�#5�w�
?�1��)�)�E�@�	
����
� 6� 6�7�������X�.�	@�
?���A3�3
Bc��SnUR[U5n[RnSSS5 UR	W[R
5 UR	WR[5 g!,(df   NO=f)zK
As of v4.0.0, accessing jsonschema.validators.meta_schemas is
deprecated.
z:Accessing jsonschema.validators.meta_schemas is deprecatedN)rrr
�meta_schemasr�
_META_SCHEMASrrr4s    r�test_validators_meta_schemas�-TestDeprecations.test_validators_meta_schemas]sd��O��
�
"�
"�#5�w�
?�1��+�+�E�@�	
����
� 8� 8�9�������X�.�	@�
?�r8c�>�[RR05nSnUR[U5nURS5 SSS5 SSS5 UR
WR[5 g!,(df   N7=f!,(df   N@=f)z3
As of v4.0.0, RefResolver.in_scope is deprecated.
z.jsonschema.RefResolver.in_scope is deprecated �fooN)	r
�_RefResolver�from_schemarr�in_scoperrr)r�resolverrrs    r�test_RefResolver_in_scope�*TestDeprecations.test_RefResolver_in_scopejsw��
�*�*�6�6�r�:��B��
�
"�
"�#5�w�
?�1��"�"�5�)��*�@�	
������X�.�*�)��@�
?�s#�B�
A=�B�=
B	�B�
Bc��[R"05nSnUR[U5nUR	SSS05nSSS5 URW5 UR
WR[5 g!,(df   N@=f)zb
As of v4.0.0, calling is_valid with two arguments (to provide a
different schema) is deprecated.
z5Passing a schema to Validator.is_valid is deprecated r?�type�numberN)	r
�Draft7Validatorrr�is_valid�assertFalserrr)r�	validatorrr�results     r�%test_Validator_is_valid_two_arguments�6TestDeprecations.test_Validator_is_valid_two_argumentswsw���.�.�r�2�	�I��
�
"�
"�#5�w�
?�1��'�'����/A�B�F�@�	
���� �������X�.�	@�
?�s�A>�>
Bc�8�[R"05nSnUR[U5nUR	SSS05unSSS5 URWRS5 URWR[5 g!,(df   NK=f)ze
As of v4.0.0, calling iter_errors with two arguments (to provide a
different schema) is deprecated.
z8Passing a schema to Validator.iter_errors is deprecated r?rGrHN)	r
rIrr�iter_errorsrrLrr)rrLrr�errors     r�(test_Validator_iter_errors_two_arguments�9TestDeprecations.test_Validator_iter_errors_two_arguments�s���.�.�r�2�	�L��
�
"�
"�#5�w�
?�1��*�*�5�6�8�2D�E�F�E�@�	
������&�1�������X�.�	@�
?�s�B�
Bc�(�[R"05nSnUR[U5nUR	UR
[R5 SSS5 URWR[5 g!,(df   N/=f)z<
As of v4.18.0, accessing Validator.resolver is deprecated.
z&Accessing Draft7Validator.resolver is N)
r
rIrr�assertIsInstancerCr@rrr)rrLrrs    r�test_Validator_resolver�(TestDeprecations.test_Validator_resolver�sn��
�.�.�r�2�	�:��
�
"�
"�#5�w�
?�1��!�!�)�"4�"4�j�6M�6M�N�@�	
������X�.�@�
?�s�+B�
Bc�`�SnUR[U5nSSKJn SSS5 UR	WR
[5 UR[U5nSSKJn SSS5 UR	UR
[5 g!,(df   Nt=f!,(df   N@=f)z1
As of v4.18.0, RefResolver is fully deprecated.
z$jsonschema.RefResolver is deprecatedr)�RefResolverN)rrrrZrrrr")rrrrZs    r�test_RefResolver�!TestDeprecations.test_RefResolver�s}��
9��
�
"�
"�#5�w�
?�1�.�@�������X�.�
�
"�
"�#5�w�
?�1�9�@�������X�.�
@�
?��@�
?�s�B�B�
B�
B-c���SnUR[U5nSSKJn SSS5 UR	W[
R5 UR	WR[5 UR[U5nSSK	Jn SSS5 UR	U[
R5 UR	UR[5 g!,(df   N�=f!,(df   N`=f)zt
As of v4.18.0, RefResolutionError is deprecated in favor of directly
catching errors from the referencing library.
z6jsonschema.exceptions.RefResolutionError is deprecatedr��RefResolutionErrorN)
rrrr_rr�_RefResolutionErrorrr�jsonschema.exceptions)rrrr_s    r�test_RefResolutionError�(TestDeprecations.test_RefResolutionError�s���K��
�
"�
"�#5�w�
?�1�5�@�	
���+�Z�-K�-K�L�������X�.�
�
"�
"�#5�w�
?�1�@�@�	
���+�Z�-K�-K�L�������X�.�@�
?��@�
?�s�C�>C�
C�
C-c�|�[R"SS05nUR[RR
5nUR
S5 SSS5 [RRSS9nURWR[UR54US45 g!,(df   N_=f)z�
This behavior is the intended behavior (i.e. it's not deprecated), but
given we do "tricksy" things in the iterim to wrap exceptions in a
multiple inheritance subclass, we need to be extra sure it works and
stays working.
�$ref�urn:nothing�N)�ref�Unresolvable: urn:nothing)
r
�Draft202012Validator�assertRaises�referencingr�Unresolvable�validater�	exception�str)rrL�e�expecteds    r�#test_catching_Unresolvable_directly�4TestDeprecations.test_catching_Unresolvable_directly�s����3�3�V�]�4K�L�	�
�
�
�{�5�5�B�B�
C�q����r�"�D��)�)�6�6�=�6�I�����
�[�[�#�a�k�k�*�+�
�2�3�	
�	D�
C�s�B-�-
B;c�8�UR[5 SSKJn SSS5 [R
"SS05nUR
[RR5nURS5 SSS5 UR
W5nURS5 SSS5 URWR[UR54WRS45 g!,(df   N�=f!,(df   N�=f!,(df   Nn=f)z�
Until RefResolutionError is removed, it is still possible to catch
exceptions from reference resolution using it, even though they may
have been raised by referencing.
rr^Nrerfrgri)�assertWarnsrrr_r
rjrkrlrrmrnrrorp�rr_rL�urqs     r�1test_catching_Unresolvable_via_RefResolutionError�BTestDeprecations.test_catching_Unresolvable_via_RefResolutionError�s����
�
�0�
1�5�2��3�3�V�]�4K�L�	�
�
�
�{�5�5�B�B�
C�q����r�"�D��
�
�1�
2�a����r�"�3�	
���
�[�[�#�a�k�k�*�+�
�[�[�5�6�	
�2�
1��
D�
C��3�
2�s#�C)�&C:�D�)
C7�:
D�
Dc�Z�UR[5 SSKJn SSS5 [R
"SS05nUR
[RR5nURS5 SSS5 UR
W5nURS5 SSS5 URWRWR15 URURUR15 g!,(df   N�=f!,(df   N�=f!,(df   N=f)zC
Ensure the wrapped referencing errors are hashable when possible.
rr^Nrerfrg)
rvrrr_r
rjrkrlrrmrn�assertInrorws     r�(test_WrappedReferencingError_hashability�9TestDeprecations.test_WrappedReferencingError_hashability�s����
�
�0�
1�5�2��3�3�V�]�4K�L�	�
�
�
�{�5�5�B�B�
C�q����r�"�D��
�
�1�
2�a����r�"�3�	
�
�
�a�k�k�A�K�K�=�1��
�
�a�k�k�A�K�K�=�1�2�
1��
D�
C��3�
2�s#�C:�&D�D�:
D�
D�
D*c	�t�SnUR[U5n"SS[R5nSSS5 UR	WR
[5 UR[U5n"SS[R"0S95nSSS5 g!,(df   Nk=f!,(df   g=f)a+
As of v4.12.0, subclassing a validator class produces an explicit
deprecation warning.

This was never intended to be public API (and some comments over the
years in issues said so, but obviously that's not a great way to make
sure it's followed).

A future version will explicitly raise an error.
z!Subclassing validator classes is c��\rSrSrSrg)�=TestDeprecations.test_Validator_subclassing.<locals>.Subclassi�N��__name__�
__module__�__qualname__�__firstlineno__�__static_attributes__r��r�Subclassr����r�r�Nc��\rSrSrSrg)�DTestDeprecations.test_Validator_subclassing.<locals>.AnotherSubclassir�Nr�r�r�r�AnotherSubclassr�r�r�r�)�meta_schema)rrr
rjrrr�create)rrrr�r�s     r�test_Validator_subclassing�+TestDeprecations.test_Validator_subclassing�s���6��
�
"�
"�#5�w�
?�1�
�:�:�:�
�@�	
������X�.�
�
"�
"�#5�w�
?�1�
�*�"3�"3��"C�
�@�
?�
@�
?��@�
?�s�B�1B)�
B&�)
B7c�*�UR[RRSS5 SnUR	[
U5n[R"S5 SSS5 URWR[5 g!,(df   N/=f)zL
As of v4.14.0, FormatChecker.cls_checks is deprecated without
replacement.
�boomNzFormatChecker.cls_checks )
�
addCleanupr�checkers�poprr�
cls_checksrrr)rrrs   r�test_FormatChecker_cls_checks�.TestDeprecations.test_FormatChecker_cls_checkssl��	
���
�.�.�2�2�F�D�A�-��
�
"�
"�#5�w�
?�1��$�$�V�,�@�	
������X�.�@�
?�s�B�
Bc��SnUR[U5nSSKJn SSS5 UR	W[
RR5 URWR[5 SnUR[U5nSSKJn SSS5 UR	W[
RR5 URUR[5 SnUR[U5nSSKJ
n SSS5 UR	W[
RR5 URUR[5 S	nUR[U5nSS
KJn SSS5 UR	W[
R R5 URUR[5 SnUR[U5nSSKJn SSS5 UR	W[
R$R5 URUR[5 S
nUR[U5nSSKJn SSS5 UR	W[
R(R5 URUR[5 UR+[,5 SSKJn	 SSS5 g!,(df   GN�=f!,(df   GNT=f!,(df   GN�=f!,(df   GN�=f!,(df   GN7=f!,(df   N�=f!,(df   g=f)zo
As of v4.16.0, accessing jsonschema.draftn_format_checker is deprecated
in favor of Validator.FORMAT_CHECKER.
z3Accessing jsonschema.draft202012_format_checker is r)�draft202012_format_checkerNz3Accessing jsonschema.draft201909_format_checker is )�draft201909_format_checkerz.Accessing jsonschema.draft7_format_checker is )�draft7_format_checkerz.Accessing jsonschema.draft6_format_checker is )�draft6_format_checkerz.Accessing jsonschema.draft4_format_checker is )�draft4_format_checkerz.Accessing jsonschema.draft3_format_checker is )�draft3_format_checker)�draft1234_format_checker)rrrr��assertIsr
rj�FORMAT_CHECKERrrrr��Draft201909Validatorr�rIr��Draft6Validatorr��Draft4Validatorr��Draft3Validatorrk�ImportErrorr�)
rrrr�r�r�r�r�r�r�s
          r�test_draftN_format_checker�+TestDeprecations.test_draftN_format_checkersn��H��
�
"�
"�#5�w�
?�1�=�@�	
�
�
�&��+�+�:�:�	
�	
������X�.�G��
�
"�
"�#5�w�
?�1�=�@�	
�
�
�&��+�+�:�:�	
�	
������X�.�B��
�
"�
"�#5�w�
?�1�8�@�	
�
�
�!��&�&�5�5�	
�	
������X�.�B��
�
"�
"�#5�w�
?�1�8�@�	
�
�
�!��&�&�5�5�	
�	
������X�.�B��
�
"�
"�#5�w�
?�1�8�@�	
�
�
�!��&�&�5�5�	
�	
������X�.�B��
�
"�
"�#5�w�
?�1�8�@�	
�
�
�!��&�&�5�5�	
�	
������X�.�
�
�
�{�
+�;�,�
+�w@�
?��@�
?��@�
?��@�
?��@�
?��@�
?��,�
+�sS�K�
K�;K0�,L�L�L&�<L7�
K�
K-�0
K?�
L�
L#�&
L4�7
Mc��SnUR[U5nSSKn[R"UR
5 SSS5 UR
WR[R5 g!,(df   N9=f)z8
As of v4.17.0, importing jsonschema.cli is deprecated.
z5The jsonschema CLI is deprecated and will be removed rN)	rr�jsonschema.clir�reload�clirrr)rrrrs    r�test_import_cli� TestDeprecations.test_import_clids^��
J��
�
"�
"�#5�w�
?�1�!����Z�^�^�,�@�	
������Y�%7�%7�8�	@�
?�s�%A1�1
A?c��[R"[RSS/SS9nUR	SUR
5 g)z2
As of v4.17.0, the jsonschema CLI is deprecated.
z-mrT)�capture_outputs!The jsonschema CLI is deprecated N)�
subprocess�run�sys�
executabler|�stderr)r�processs  r�test_cli�TestDeprecations.test_clips8��
�.�.�
�^�^�T�<�0��
��	
�
�
�:�G�N�N�Kr�c�^^�SnSSSS000mS[R;a<TR[RRS[RS5 S[RS'[UU4Sj5n[
R"S	U05nS
n[RR[RSUS9nU TR[U5 TRUR05URS
54S5 SSS5 SSS5 g!,(df   N=f!,(df   g=f)zG
Automatic retrieval of remote references is deprecated as of v4.18.0.
zhttp://bar#/$defs/bazz$defs�bazrG�integer�requestsNc3�># �TRU[RR5 TR	UR
S5 UR
5uupTR	UR5S5 TR	US5 [[R"T5RS55v� g7f)Nz
http://barz
user-agentz.python-jsonschema (deprecated $ref resolution)�utf8)rV�urllib�request�Requestr�full_url�header_items�lowerr�json�dumps�encode)r��headerr5�schemars   ��r�fake_urlopen�FTestDeprecations.test_automatic_remote_retrieval.<locals>.fake_urlopen�s������!�!�'�6�>�>�+A�+A�B����W�-�-�|�<� '�3�3�5��O�V����V�\�\�^�\�:�����G�
��$�*�*�V�,�3�3�F�;�<�<�s�B>Crez+Automatically retrieving remote references �urlopen)�new�%)FT)r��modulesr��__setitem__rr
rjr�patch�objectr�r�rrrrJ)rrhr�rLrr�r�s`     @r�test_automatic_remote_retrieval�0TestDeprecations.test_automatic_remote_retrieval{s���&���E�F�I�#6�7�8������$��O�O����'�'��S�[�[��5L�
�#'����J��	�	=�
�	=��3�3�V�S�M�B�	�?���
�
�!�!�&�.�.�)��!�N��
�D�)�)�*<�g�F�����#�#�B�'��);�);�B�)?�@��
�G�U�U�F�F��U�U�s$�	D5� 3D$�D5�$
D2	�.D5�5
Er�N)r�r�r�r�rr$r(r,r0r6r<rDrNrSrWr[rbrsryr}r�r�r�r�r�r�r�r�r�rrrss��
/�/�/�/�/�/�/�/�/�/�
/�/�/�&
�$
�,2�$�./�C<�J
9�	L�$r�r)�
contextlibr�ior�unittestrr�importlib.metadatarr�r�r��urllib.requestr��referencing.exceptionsrlrrrr	r
rr�r�r�<module>r�s4��%��#����
���G�G�P�x�Pr�

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 156 B 0644
_suite.cpython-313.pyc File 12.91 KB 0644
fuzz_validate.cpython-313.pyc File 2.21 KB 0644
test_cli.cpython-313.pyc File 32.09 KB 0644
test_deprecations.cpython-313.pyc File 23.52 KB 0644
test_exceptions.cpython-313.pyc File 25.63 KB 0644
test_format.cpython-313.pyc File 6.06 KB 0644
test_jsonschema_test_suite.cpython-313.pyc File 9.68 KB 0644
test_types.cpython-313.pyc File 11.6 KB 0644
test_utils.cpython-313.pyc File 6.86 KB 0644
test_validators.cpython-313.pyc File 126.6 KB 0644
Filemanager