403Webshell
Server IP : 88.99.149.37  /  Your IP : 216.73.216.141
Web Server : nginx/1.31.2
System : Linux server-88-99-149-37 6.12.0-124.56.5.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 06:12:08 EDT 2026 x86_64
User : muralimurth ( 1015)
PHP Version : 8.4.23
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.12/site-packages/referencing/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.12/site-packages/referencing/tests/__pycache__/test_retrieval.cpython-312.pyc
�

�% g���`�ddlmZddlZddlZddlmZmZmZddlm	Z	ddl
mZGd�d�Zy)�)�	lru_cacheN)�Registry�Resource�
exceptions)�DRAFT202012)�to_cached_resourcec�$�eZdZd�Zd�Zd�Zd�Zy)�TestToCachedResourcec�:��ddi}tj|�g�t��fd��}t|��}t	j
|�}|j
d�}|j|k(sJ�|j
d�}|j|jusJ�y)N�$schema�,https://json-schema.org/draft/2020-12/schemac�$���j�S�N��pop��uri�stacks ��E/usr/lib/python3.12/site-packages/referencing/tests/test_retrieval.py�retrievezITestToCachedResource.test_it_caches_retrieved_resources.<locals>.retrieve�����9�9�;���r�urn:example:schema��json�dumpsrrr�
from_contents�get_or_retrieve�value��self�contentsr�registry�expected�got�againrs       @r�"test_it_caches_retrieved_resourcesz7TestToCachedResource.test_it_caches_retrieved_resourcess�����M�N�����H�%�&��	�	�	�
�	��X�.���)�)�(�3���&�&�';�<���y�y�H�$�$�$��(�(�)=�>���{�{�c�i�i�'�'�'rc�L��ddi}tj|�ddd�g�td����fd��}t|��}t	j
|�}|j
d�}|j|k(sJ�|j
d�}|j|jusJ�y)	Nrr
���c�8�tj|ddd��S)Nr*)r�loads)�ss r�<lambda>z9TestToCachedResource.test_custom_loader.<locals>.<lambda>#s��D�J�J�q��2��w�,?r)r,c�$���j�Srrrs �rrz9TestToCachedResource.test_custom_loader.<locals>.retrieve#rrrrrr!s       @r�test_custom_loaderz'TestToCachedResource.test_custom_loaders�����M�N�����H�%�d��d�+�,��	�"?�	@�	�
A�	��X�.���)�)�(�3���&�&�';�<���y�y�H�$�$�$��(�(�)=�>���{�{�c�i�i�'�'�'rc�V��i}tj|�g�ttj���fd��}t|��}tj|�}|j
d�}|j|k(sJ�|j
d�}|j|jusJ�y)N)rc�$���j�Srrrs �rrz@TestToCachedResource.test_custom_from_contents.<locals>.retrieve6rrrr)rrrr�create_resourcerrr r!s       @r�test_custom_from_contentsz.TestToCachedResource.test_custom_from_contents2s���������H�%�&��	�+�*E�*E�	F�	�
G�	��X�.���.�.�x�8���&�&�';�<���y�y�H�$�$�$��(�(�)=�>���{�{�c�i�i�'�'�'rc���ddi}t|d��t|d��t|d��d���j�D��cic]\}}|tj|���}}}t	td���	��fd
��}t
|��}|jd�}|j|dk(sJ�|jd�j|jusJ�|jd�j|jusJ�|jd
�}|j|d
k(sJ�|jd
�j|jusJ�|jd
�j|jusJ�|jd�}|j|dk(sJ�|jd�j|jusJ�|jd�j|jusJ�tjtj�5|jd�ddd�ycc}}w#1swYyxYw)Nrr
�)�foo��)�
urn:example:1�
urn:example:2�
urn:example:3)�maxsize)�cachec�L��tj�j|��Sr)rrr)r�mappings �rrz8TestToCachedResource.test_custom_cache.<locals>.retrieveRs����:�:�g�k�k�#�.�/�/rrr:r;r<)
�dict�itemsrrrrrrr �pytest�raisesr�
Unretrievable)	r"�schemarr#�	resourcesrr$r&r@s	        @r�test_custom_cachez&TestToCachedResource.test_custom_cacheEs����K�L��!�&�a�0�!�&�a�0�!�&�a�0�
��")����
�!0�
��X�
��'�'��1�1�!0�	�
�

�)�A�"6�	7�	0�
8�	0��X�.���&�&��7���y�y�I�o�6�6�6�6��'�'��8�>�>�#�)�)�K�K�K��'�'��8�>�>�#�)�)�K�K�K��&�&��7���y�y�I�o�6�6�6�6��'�'��8�>�>�#�)�)�K�K�K��'�'��8�>�>�#�)�)�K�K�K��&�&��7���y�y�I�o�6�6�6�6��'�'��8�>�>�#�)�)�K�K�K��'�'��8�>�>�#�)�)�K�K�K��]�]�:�3�3�
4��$�$�_�5�5�
4��9
�85�
4�s� H0�H6�6H?N)�__name__�
__module__�__qualname__r(r0r4rH�rrr
r
s��(�&(�&(�&%6rr
)
�	functoolsrrrC�referencingrrr�referencing.jsonschemar�referencing.retrievalrr
rLrr�<module>rQs&����
�6�6�.�4�_6�_6r

Youez - 2016 - github.com/yon3zu
LinuXploit