HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/twisted/internet/test/__pycache__/test_abstract.cpython-310.pyc
o

�b��@s0dZddlmZddlmZGdd�de�ZdS)zY
Tests for L{twisted.internet.abstract}, a collection of APIs for implementing
reactors.
�)�
isIPv6Address)�SynchronousTestCasec@s@eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dS)�IPv6AddressTestszw
    Tests for L{isIPv6Address}, a function for determining if a particular
    string is an IPv6 address literal.
    cC�|�td��dS)zB
        The empty string is not an IPv6 address literal.
        �N��assertFalser��self�r�E/usr/lib/python3/dist-packages/twisted/internet/test/test_abstract.py�
test_empty�zIPv6AddressTests.test_emptycCr)zA
        A single C{":"} is not an IPv6 address literal.
        �:Nrr	rrr�
test_colonrzIPv6AddressTests.test_coloncCr)z@
        C{"::1"} is the IPv6 loopback address literal.
        z::1N��
assertTruerr	rrr�
test_loopback rzIPv6AddressTests.test_loopbackcC�.|�td��|�td��|�td��dS)z�
        An otherwise valid IPv6 address literal may also include a C{"%"}
        followed by an arbitrary scope identifier.
        zfe80::1%eth0�	fe80::2%1zfe80::3%en2Nrr	rrr�test_scopeID&�zIPv6AddressTests.test_scopeIDcCr)zv
        An otherwise invalid IPv6 address literal is still invalid with a
        trailing scope identifier.
        z%eth0z:%eth0�
hello%eth0Nrr	rrr�test_invalidWithScopeID/rz(IPv6AddressTests.test_invalidWithScopeIDcCsJ|�td��|�td��|�td��|�td��|�td��dS)zQ
        L{isIPv6Address} evaluates ASCII-encoded bytes as well as text.
        s	fe80::2%1ru䌡rs
hello%eth0N)rrrr	rrr�test_unicodeAndBytes8s
z%IPv6AddressTests.test_unicodeAndBytesN)
�__name__�
__module__�__qualname__�__doc__r
rrrrrrrrrrs		rN)r�twisted.internet.abstractr�twisted.trial.unittestrrrrrr�<module>s