+
     h  c                   sb    ^ RI Ht ^ RIt^ RIt^ RIHtHtHt ^ RIH	t	 ^ RI
Ht  ! R R4      tR# )i    )	lru_cacheN)RegistryResource
exceptions)DRAFT202012)to_cached_resourcec                   s8   a  ] tR t^t o R tR tR tR tRtV t	R# )TestToCachedResourcec                sJ  a R R/p\         P                  ! V4      .o\        4       V3R l4       p\        VR7      p\        P
                  ! V4      pVP                  R4      pVP                  V8X  g   Q hVP                  R4      pVP                  VP                  J g   Q hR# )$schema,https://json-schema.org/draft/2020-12/schemac                 $   < SP                  4       # Npopuristack   &E/usr/lib/python3.14/site-packages/referencing/tests/test_retrieval.pyretrieveZITestToCachedResource.test_it_caches_retrieved_resources.<locals>.retrieve       99;    r   urn:example:schemaNjsondumpsr   r   r   from_contentsget_or_retrievevalueselfcontentsr   registryZexpectedgotZagainr      &      @r   "test_it_caches_retrieved_resourcesZ7TestToCachedResource.test_it_caches_retrieved_resources   s    MNH%&			 
	 X.))(3&&';<yyH$$$ (()=>{{cii'''r   c                sd  a R R/p\         P                  ! V4      RRR1,          .o\        R R7      V3R l4       p\        VR7      p\        P
                  ! V4      pVP                  R4      pVP                  V8X  g   Q hVP                  R4      pVP                  VP                  J g   Q hR# )	r   r   Nc                 sB    \         P                  ! V R R R1,          4      # )N)r   loads)Zss   &r   Z<lambda>Z9TestToCachedResource.test_custom_loader.<locals>.<lambda>#   s    DJJq2w,?r   )r%   c                 r	   r
   r   r   r   r   r   Z9TestToCachedResource.test_custom_loader.<locals>.retrieve#   r   r   r   r   r$   r   r   r"   r   test_custom_loaderZ'TestToCachedResource.test_custom_loader   s    MNH%dd+,	"?	@	 
A	 X.))(3&&';<yyH$$$ (()=>{{cii'''r   c                sf  a / p\         P                  ! V4      .o\        \        P                  R 7      V3R l4       p\        VR7      p\        P                  ! V4      pVP                  R4      pVP                  V8X  g   Q hVP                  R4      pVP                  VP                  J g   Q hR# ))r   c                 r	   r
   r   r   r   r   r   Z@TestToCachedResource.test_custom_from_contents.<locals>.retrieve6   r   r   r   r   N)r   r   r   r   Zcreate_resourcer   r   r   r   r"   r   test_custom_from_contentsZ.TestToCachedResource.test_custom_from_contents2   s    H%&	+*E*E	F	 
G	 X...x8&&';<yyH$$$ (()=>{{cii'''r   c           
     s  a R R/pR\        V^R7      R\        V^R7      R\        V^R7      /oSP                  4        UUu/ uF  w  r#V\        P                  ! V4      bK  	  ppp\	        \        ^R7      R7      V3R l4       p\        VR	7      pVP                  R4      pVP                  VR,          8X  g   Q hVP                  R4      P                  VP                  J g   Q hVP                  R4      P                  VP                  J g   Q hVP                  R4      pVP                  VR,          8X  g   Q hVP                  R4      P                  VP                  J g   Q hVP                  R4      P                  VP                  J g   Q hVP                  R4      pVP                  VR,          8X  g   Q hVP                  R4      P                  VP                  J g   Q hVP                  R4      P                  VP                  J g   Q h\        P                  ! \        P                  4      ;_uu_ 4        VP                  R4       R
R
R
4       R
# u uppi   + '       g   i     R
# ; i)r   r   zurn:example:1)Zfoozurn:example:2zurn:example:3)Zmaxsize)Zcachec                 sN   < \         P                  ! SP                  V 4      4      # r
   )r   r   r   )r   mappingr   r   r   Z8TestToCachedResource.test_custom_cache.<locals>.retrieveR   s    ::gkk#.//r   r   N)ZdictZitemsr   r   r   r    r   r   r   pytestZraisesr   ZUnretrievable)	r   Zschemar   r   Z	resourcesr   r    r!   r(   s	   &       @r   test_custom_cacheZ&TestToCachedResource.test_custom_cacheE   s$   KLT&a0T&a0T&a0
 ")
!0 ''11!0 	 

 
)A"6	7	0 
8	0 X.&&7yyIo6666''8>>#))KKK''8>>#))KKK&&7yyIo6666''8>>#))KKK''8>>#))KKK &&7yyIo6666''8>>#))KKK''8>>#))KKK ]]:3344$$_5 549
8 544s   "II##I4	 N)
Z__name__Z
__module__Z__qualname__Z__firstlineno__r#   r&   r'   r*   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r      s     (&(&(&%6 %6r   r   )Z	functoolsr    r   r)   Zreferencingr   r   r   Zreferencing.jsonschemar   Zreferencing.retrievalr   r   r+   r   r   <module>r,      s&       6 6 . 4_6 _6r   