§
    Ètºf›  ã                  óJ   — d Z ddlmZ ddlmZ ddlmZ  G d„ de¦  «        ZdS )zY
Tests for L{twisted.internet.abstract}, a collection of APIs for implementing
reactors.
é    )Úannotations)ÚisIPv6Address)ÚSynchronousTestCasec                  óB   — e Zd ZdZdd„Zdd„Zdd„Zdd„Zdd„Zdd	„Z	d
S )ÚIPv6AddressTestszw
    Tests for L{isIPv6Address}, a function for determining if a particular
    string is an IPv6 address literal.
    ÚreturnÚNonec                óJ   — |                       t          d¦  «        ¦  «         dS )zB
        The empty string is not an IPv6 address literal.
        Ú N©ÚassertFalser   ©Úselfs    úb/var/www/surfInsights/venv3-11/lib/python3.11/site-packages/twisted/internet/test/test_abstract.pyÚ
test_emptyzIPv6AddressTests.test_empty   s&   € ð 	×Ò� rÑ*Ô*Ñ+Ô+Ð+Ð+Ð+ó    c                óJ   — |                       t          d¦  «        ¦  «         dS )zA
        A single C{":"} is not an IPv6 address literal.
        ú:Nr   r   s    r   Ú
test_colonzIPv6AddressTests.test_colon   s&   € ð 	×Ò� sÑ+Ô+Ñ,Ô,Ð,Ð,Ð,r   c                óJ   — |                       t          d¦  «        ¦  «         dS )z@
        C{"::1"} is the IPv6 loopback address literal.
        z::1N©Ú
assertTruer   r   s    r   Útest_loopbackzIPv6AddressTests.test_loopback    s$   € ð 	�Š� eÑ,Ô,Ñ-Ô-Ð-Ð-Ð-r   c                óÒ   — |                       t          d¦  «        ¦  «         |                       t          d¦  «        ¦  «         |                       t          d¦  «        ¦  «         dS )z†
        An otherwise valid IPv6 address literal may also include a C{"%"}
        followed by an arbitrary scope identifier.
        zfe80::1%eth0ú	fe80::2%1zfe80::3%en2Nr   r   s    r   Útest_scopeIDzIPv6AddressTests.test_scopeID&   sX   € ð
 	�Š� nÑ5Ô5Ñ6Ô6Ð6Ø�Š� kÑ2Ô2Ñ3Ô3Ð3Ø�Š� mÑ4Ô4Ñ5Ô5Ð5Ð5Ð5r   c                óÒ   — |                       t          d¦  «        ¦  «         |                       t          d¦  «        ¦  «         |                       t          d¦  «        ¦  «         dS )zv
        An otherwise invalid IPv6 address literal is still invalid with a
        trailing scope identifier.
        z%eth0z:%eth0ú
hello%eth0Nr   r   s    r   Útest_invalidWithScopeIDz(IPv6AddressTests.test_invalidWithScopeID/   s^   € ð
 	×Ò� wÑ/Ô/Ñ0Ô0Ð0Ø×Ò� xÑ0Ô0Ñ1Ô1Ð1Ø×Ò� |Ñ4Ô4Ñ5Ô5Ð5Ð5Ð5r   c                óZ  — |                       t          d¦  «        ¦  «         |                       t          d¦  «        ¦  «         |                      t          d¦  «        ¦  «         |                      t          d¦  «        ¦  «         |                      t          d¦  «        ¦  «         dS )zQ
        L{isIPv6Address} evaluates ASCII-encoded bytes as well as text.
        s	   fe80::2%1r   u   äŒ¡r   s
   hello%eth0N)r   r   r   r   s    r   Útest_unicodeAndBytesz%IPv6AddressTests.test_unicodeAndBytes8   s’   € ð 	�Š� lÑ3Ô3Ñ4Ô4Ð4Ø�Š� kÑ2Ô2Ñ3Ô3Ð3Ø×Ò� xÑ0Ô0Ñ1Ô1Ð1Ø×Ò� |Ñ4Ô4Ñ5Ô5Ð5Ø×Ò� }Ñ5Ô5Ñ6Ô6Ð6Ð6Ð6r   N)r   r	   )
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r!   © r   r   r   r      s–   € € € € € ðð ð
,ð ,ð ,ð ,ð-ð -ð -ð -ð.ð .ð .ð .ð6ð 6ð 6ð 6ð6ð 6ð 6ð 6ð
7ð 
7ð 
7ð 
7ð 
7ð 
7r   r   N)r%   Ú
__future__r   Útwisted.internet.abstractr   Útwisted.trial.unittestr   r   r&   r   r   ú<module>r*      s|   ððð ð #Ð "Ð "Ð "Ð "Ð "à 3Ð 3Ð 3Ð 3Ð 3Ð 3Ø 6Ð 6Ð 6Ð 6Ð 6Ð 6ð47ð 47ð 47ð 47ð 47Ð*ñ 47ô 47ð 47ð 47ð 47r   