Current File : //usr/lib/python3/dist-packages/twisted/internet/test/__pycache__/test_abstract.cpython-312.pyc |
�
Ϫ�f� � �B � d Z ddlmZ ddlmZ ddlmZ G d� de� Zy)zY
Tests for L{twisted.internet.abstract}, a collection of APIs for implementing
reactors.
� )�annotations)�
isIPv6Address)�SynchronousTestCasec �@ � e Zd ZdZd d�Zd d�Zd d�Zd d�Zd d�Zd d�Z y)
�IPv6AddressTestszw
Tests for L{isIPv6Address}, a function for determining if a particular
string is an IPv6 address literal.
c �8 � | j t d� � y)zB
The empty string is not an IPv6 address literal.
� N��assertFalser ��selfs �E/usr/lib/python3/dist-packages/twisted/internet/test/test_abstract.py�
test_emptyzIPv6AddressTests.test_empty s � �
����r�*�+� c �8 � | j t d� � y)zA
A single C{":"} is not an IPv6 address literal.
�:Nr
r s r �
test_colonzIPv6AddressTests.test_colon s � �
����s�+�,r c �8 � | j t d� � y)z@
C{"::1"} is the IPv6 loopback address literal.
z::1N��
assertTruer r s r �
test_loopbackzIPv6AddressTests.test_loopback s � �
���
�e�,�-r c � � | j t d� � | j t d� � | j t d� � y)z�
An otherwise valid IPv6 address literal may also include a C{"%"}
followed by an arbitrary scope identifier.
zfe80::1%eth0� fe80::2%1zfe80::3%en2Nr r s r �test_scopeIDzIPv6AddressTests.test_scopeID&