§
    Ètºf  ã                  óº   — d Z ddlmZ ddlmZmZ ddlmZmZ ddl	m
Z
 ddlmZ  eej        ¦  «         G d„ d¦  «        ¦   «         Z G d	„ d
e
j        ¦  «        ZdS )z,
Tests for various parts of L{twisted.web}.
é    )Úannotations)ÚimplementerÚverify)ÚdeferÚ
interfaces)Úunittest)Úclientc                  ó*   — e Zd ZdZdd„Zdd„Zdd„ZdS )ÚDummyEndPointz*An endpoint that does not connect anywhereÚ
someStringÚstrÚreturnÚNonec                ó   — || _         d S )N©r   )Úselfr   s     ú[/var/www/surfInsights/venv3-11/lib/python3.11/site-packages/twisted/web/test/test_client.pyÚ__init__zDummyEndPoint.__init__   s   € Ø$ˆŒˆˆó    c                ó   — d| j         › d�S )NzDummyEndPoint(ú)r   )r   s    r   Ú__repr__zDummyEndPoint.__repr__   s   € Ø2 ¤Ð2Ð2Ð2Ð2r   Úfactoryúinterfaces.IProtocolFactoryú6defer.Deferred[dict[str, interfaces.IProtocolFactory]]c                óF   — t          j        t          |¬¦  «        ¦  «        S )N)r   )r   ÚsucceedÚdict)r   r   s     r   ÚconnectzDummyEndPoint.connect   s   € õ Œ}�T¨'Ð2Ñ2Ô2Ñ3Ô3Ð3r   N)r   r   r   r   )r   r   )r   r   r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   © r   r   r   r      sX   € € € € € ð 5Ð4ð%ð %ð %ð %ð3ð 3ð 3ð 3ð4ð 4ð 4ð 4ð 4ð 4r   r   c                  ó"   — e Zd ZdZdd„Zdd„ZdS )ÚHTTPConnectionPoolTestsz:
    Unit tests for L{client.HTTPConnectionPoolTest}.
    r   r   c                ób   — t          d¦  «        }t          j        t          j        |¦  «         dS )z@L{DummyEndPoint}s implements L{interfaces.IStreamClientEndpoint}Ú	somethingN)r   r   ÚverifyObjectr   ÚIStreamClientEndpoint)r   Úeps     r   Útest_implementsz'HTTPConnectionPoolTests.test_implements&   s+   € å˜;Ñ'Ô'ˆÝÔ�JÔ<¸bÑAÔAÐAÐAÐAr   c                ó  — t          j        d¬¦  «        }t          d¦  «        }|                     d|¦  «        }|                      |¦  «        }t          |¦  «        }|                      t          |¦  «        |¦  «         dS )z2connection L{repr()} includes endpoint's L{repr()}N)ÚreactorÚthis_is_probably_uniqueÚ	someplace)r	   ÚHTTPConnectionPoolr   ÚgetConnectionÚsuccessResultOfÚreprÚassertIn)r   Úpoolr+   ÚdÚresultÚrepresentations         r   Ú	test_reprz!HTTPConnectionPoolTests.test_repr+   sv   € åÔ(°Ð6Ñ6Ô6ˆÝÐ4Ñ5Ô5ˆØ×Ò˜{¨BÑ/Ô/ˆØ×%Ò% aÑ(Ô(ˆÝ˜f™œˆØ�Š•d˜2‘h”h Ñ/Ô/Ð/Ð/Ð/r   N)r   r   )r    r!   r"   r#   r,   r:   r$   r   r   r&   r&   !   sJ   € € € € € ðð ðBð Bð Bð Bð
0ð 0ð 0ð 0ð 0ð 0r   r&   N)r#   Ú
__future__r   Úzope.interfacer   r   Útwisted.internetr   r   Útwisted.trialr   Útwisted.webr	   r*   r   ÚTestCaser&   r$   r   r   ú<module>rA      sð   ððð ð #Ð "Ð "Ð "Ð "Ð "à .Ð .Ð .Ð .Ð .Ð .Ð .Ð .à .Ð .Ð .Ð .Ð .Ð .Ð .Ð .Ø "Ð "Ð "Ð "Ð "Ð "Ø Ð Ð Ð Ð Ð ð €ˆZÔ-Ñ.Ô.ð4ð 4ð 4ð 4ð 4ñ 4ô 4ñ /Ô.ð4ð 0ð 0ð 0ð 0ð 0˜hÔ/ñ 0ô 0ð 0ð 0ð 0r   