Current File : //lib/python3/dist-packages/twisted/names/test/__pycache__/test_common.cpython-312.pyc |
�
Ϫ�f � � � d Z ddlmZ ddlmZ ddlmZ ddlmZm Z m
Z
mZmZm
Z
ddlmZmZmZmZmZmZ ddlmZ ddlmZ G d � d
e� Z G d� de� Zy
)z$
Tests for L{twisted.names.common}.
� )�verifyClass)� IResolver)�ResolverBase)�EFORMAT�ENAME�ENOTIMP�EREFUSED�ESERVER�Query)�DNSFormatError�DNSNameError�DNSNotImplementedError�DNSQueryRefusedError�DNSServerError�DNSUnknownError)�Failure)�SynchronousTestCasec �: � e Zd ZdZd� Zd� Zd� Zd� Zd� Zd� Z d� Z
y )
�ExceptionForCodeTestsz5
Tests for L{ResolverBase.exceptionForCode}.
c �6 � t � j | _ y �N)r �exceptionForCode��selfs �@/usr/lib/python3/dist-packages/twisted/names/test/test_common.py�setUpzExceptionForCodeTests.setUp s � � ,�� ?� ?��� c �V � | j | j t � t � y)zd
L{ResolverBase.exceptionForCode} converts L{EFORMAT} to
L{DNSFormatError}.
N)�assertIsr r r r s r �test_eformatz"ExceptionForCodeTests.test_eformat"