+
    Bid                     |    ^ RI t ^ RIt^ RIHt ^ RIHt ^ RIHt ^ RIHtH	t	H
t
 Rt ! R R]P                  4      tR# )	    N)client)
FakeSocket)mock)getDOMImplementationminidom
xmlbuilders  <?xml version="1.0"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xdc="http://www.xml.com/books">
<!-- A comment -->
<title>Introduction to XSL</title>
<hr/>
<p><xdc:author xdc:attrib="prefixed attribute" attrib="other attrib">A. Namespace</xdc:author></p>
</html>c                   8   a  ] tR t^t o R tR tR tR tRtV t	R# )XMLBuilderTestc                F   R \         ,           p\        V4      p\        P                  ! V4      pVP	                  4        RV/p\
        P                  ! R/ VB p\        P                  ! 4       p\
        P                  ! R4      ;_uu_ 4       pWWn
        VP                  RR4      pRRR4       V P                  X\        P                  4       V P                  VP                  4       V P!                  VP"                  R4       V P!                  VP$                  R4       V P!                  VP&                  R4       V P)                  VP*                  V4       V P                  VP,                  4       V P                  VP.                  4       R#   + '       g   i     L; i):   HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8

open.return_valueurllib.request.build_openerNhttp://example.com/2000/svgzhttp://example.com/2000/zutf-8 )SMALL_SAMPLEr   r   HTTPResponsebeginr   Mockr   DOMEntityResolverpatchreturn_valueresolveEntityassertIsInstanceDOMInputSourceassertIsNonepublicIdassertEqualsystemIdbaseURIencodingassertIs
byteStreamcharacterStream
stringData)	selfbodysockresponseattrsopenerresolver
mock_buildsources	   &        3/usr/lib/python3.14/test/test_xml_dom_xmlbuilder.pytest_entity_resolver#XMLBuilderTest.test_entity_resolver   s>   O 	
 $&&t,$h/#U#//1ZZ566*&,#++D2OPF 7 	fj&?&?@&//**GH)CD'2f''2&001&++, 76s   FF 	c                    \        4       pV P                  V\        P                  4       VP	                  VP
                  R 4      pV P                  V\        P                  4       R # )N)r   r   r   DOMImplementationLScreateDOMBuilderMODE_SYNCHRONOUS
DOMBuilder)r%   impbuilders   &  r.   test_builderXMLBuilderTest.test_builder.   sN    "$c:#A#AB&&s';';TBgz'<'<=    c                .   R \         ,           p\        V4      p\        P                  ! V4      pVP	                  4        RV/p\
        P                  ! R/ VB p\
        P                  ! R4      ;_uu_ 4       pWVn        \        4       pVP                  VP                  R4      pVP                  R4      p	RRR4       V P                  X	\        P                  4       V P!                  \#        V	P$                  4      ^4       R#   + '       g   i     LW; i)r   r   r   Nr   r   )r   r   r   r   r   r   r   r   r   r   r3   r4   parseURIr   r   Documentr   len
childNodes)
r%   r&   r'   r(   r)   r*   r,   r6   r7   documents
   &         r.   test_parse_uriXMLBuilderTest.test_parse_uri5   s    O 	
 $&&t,$h/#U#ZZ566*&,#&(C**3+?+?FG''(EFH 7 	h(8(89X00115 76s   7>DD	c                   \         P                  ! \        4      p\        P                  ! R 4      ;_uu_ 4       pWn        \        4       pVP                  4       pVP                  VP                  R4      pRVn
        VP                  V4      pRRR4       V P                  X\        P                  4       V P                  \!        VP"                  4      ^4       R#   + '       g   i     LW; i)zurllib.request.urlopenNr   )ioBytesIOr   r   r   r   r   createDOMInputSourcer3   r4   r   parser   r   r=   r   r>   r?   )r%   r(   	mock_openr6   r-   r7   r@   s   &      r.   test_parse_with_systemId'XMLBuilderTest.test_parse_with_systemIdK   s    ::l+ZZ011Y%-"&(C--/F**3+?+?FG;FO}}V,H 2 	h(8(89X00115 21s   ACC-	r   N)
__name__
__module____qualname____firstlineno__r/   r8   rA   rI   __static_attributes____classdictcell__)__classdict__s   @r.   r
   r
      s     -8>6,6 6r:   r
   )rD   unittesthttpr   test.test_httplibr   r   xml.domr   r   r   r   TestCaser
   r   r:   r.   <module>rW      s5    	   (  = =G6X&& G6r:   