ó
    ×›‘h  ã                  ó´   • S r SSKJr  SSKJrJr  SSKJrJr  SSK	J
r
  SSKJr  \" \R                  5       " S S5      5       r " S	 S
\
R                  5      rg)z,
Tests for various parts of L{twisted.web}.
é    )Úannotations)ÚimplementerÚverify)ÚdeferÚ
interfaces)Úunittest)Úclientc                  ó>   • \ rS rSrSrSS jrS	S jr    S
S jrSrg)ÚDummyEndPointé   z*An endpoint that does not connect anywherec                ó   • Xl         g )N©Ú
someString)Úselfr   s     Ú`C:\Users\psant\Downloads\Noiseback\school\venv\Lib\site-packages\twisted/web/test/test_client.pyÚ__init__ÚDummyEndPoint.__init__   s   € Ø$�ó    c                ó"   • SU R                    S3$ )NzDummyEndPoint(Ú)r   )r   s    r   Ú__repr__ÚDummyEndPoint.__repr__   s   € Ø §¡Ð0°Ð2Ð2r   c                ó<   • [         R                  " [        US95      $ )N)Úfactory)r   ÚsucceedÚdict)r   r   s     r   ÚconnectÚDummyEndPoint.connect   s   € ô �}Š}œT¨'Ñ2Ó3Ð3r   r   N)r   ÚstrÚreturnÚNone)r    r   )r   zinterfaces.IProtocolFactoryr    z6defer.Deferred[dict[str, interfaces.IProtocolFactory]])	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   Ú__static_attributes__© r   r   r   r      s&   † ñ 5ô%ô3ð4Ø2ð4à	?÷4r   r   c                  ó,   • \ rS rSrSrSS jrSS jrSrg)ÚHTTPConnectionPoolTestsé!   z2
Unit tests for L{client.HTTPConnectionPoolTest}.
c                ód   • [        S5      n[        R                  " [        R                  U5        g)z@L{DummyEndPoint}s implements L{interfaces.IStreamClientEndpoint}Ú	somethingN)r   r   ÚverifyObjectr   ÚIStreamClientEndpoint)r   Úeps     r   Útest_implementsÚ'HTTPConnectionPoolTests.test_implements&   s"   € ä˜;Ó'ˆÜ×ÒœJ×<Ñ<¸bÕAr   c                óÔ   • [         R                  " SS9n[        S5      nUR                  SU5      nU R	                  U5      n[        U5      nU R                  [        U5      U5        g)z2connection L{repr()} includes endpoint's L{repr()}N)ÚreactorÚthis_is_probably_uniqueÚ	someplace)r	   ÚHTTPConnectionPoolr   ÚgetConnectionÚsuccessResultOfÚreprÚassertIn)r   Úpoolr0   ÚdÚresultÚrepresentations         r   Ú	test_reprÚ!HTTPConnectionPoolTests.test_repr+   sZ   € ä×(Ò(°Ñ6ˆÜÐ4Ó5ˆØ×Ñ˜{¨BÓ/ˆØ×%Ñ% aÓ(ˆÜ˜f›ˆØ�‰”d˜2“h Õ/r   r(   N)r    r!   )r"   r#   r$   r%   r&   r1   r@   r'   r(   r   r   r*   r*   !   s   † ñôB÷
0r   r*   N)r&   Ú
__future__r   Úzope.interfacer   r   Útwisted.internetr   r   Útwisted.trialr   Útwisted.webr	   r/   r   ÚTestCaser*   r(   r   r   Ú<module>rH      sQ   ðñõ #ç .ç .Ý "Ý ñ ˆZ×-Ñ-Ó.÷4ð 4ó /ð4ô 0˜h×/Ñ/õ 0r   