HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib/python3/dist-packages/twisted/internet/test/__pycache__/test_abstract.cpython-38.pyc
U


W[��@s@dZddlmZmZddlmZddlmZGdd�de�ZdS)zY
Tests for L{twisted.internet.abstract}, a collection of APIs for implementing
reactors.
�)�division�absolute_import)�SynchronousTestCase)�
isIPv6Addressc@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.
    cCs|�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_emptyszIPv6AddressTests.test_emptycCs|�td��dS)zA
        A single C{":"} is not an IPv6 address literal.
        �:Nrr
rrr
�
test_colonszIPv6AddressTests.test_coloncCs|�td��dS)z@
        C{"::1"} is the IPv6 loopback address literal.
        z::1N��
assertTruerr
rrr
�
test_loopback"szIPv6AddressTests.test_loopbackcCs.|�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
rrr
�test_scopeID)szIPv6AddressTests.test_scopeIDcCs.|�td��|�td��|�td��dS)zv
        An otherwise invalid IPv6 address literal is still invalid with a
        trailing scope identifier.
        z%eth0z:%eth0�
hello%eth0Nrr
rrr
�test_invalidWithScopeID3sz(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)rrr	r
rrr
�test_unicodeAndBytes=s
z%IPv6AddressTests.test_unicodeAndBytesN)
�__name__�
__module__�__qualname__�__doc__rrrrrrrrrr
rs

rN)	rZ
__future__rrZtwisted.trial.unittestrZtwisted.internet.abstractrrrrrr
�<module>s