← Back
Editing: test_address.cpython-38.pyc
U W[�! � @ s8 d dl mZmZ d dlZd dlZd dlmZ d dlmZm Z m Z d dlmZ d dlm Z d dlmZ e�� srdZndZz ej W n ek r� d ZY nX dZG d d� de�ZG dd � d e�ZG dd� deje�ZG dd� deje�ZG dd� deje�ZG dd� deje�ZG dd� dej�ZG dd� deje�ZdS )� )�division�absolute_importN)�unittest)�IPv4Address�UNIXAddress�IPv6Address��HostnameAddress)�nativeString)�platformz"Platform does not support symlinksz&Platform doesn't support UNIX sockets.c @ s, e Zd Zdd� Zdd� Zdd� Zdd� Zd S ) �AddressTestCaseMixinc C s0 | � | �� | �� k� | �| �� | �� k� dS )a Two different address instances, sharing the same properties are considered equal by C{==} and not considered not equal by C{!=}. Note: When applied via UNIXAddress class, this uses the same filename for both objects being compared. N)� assertTrue�buildAddress�assertFalse��self� r �D/usr/lib/python3/dist-packages/twisted/internet/test/test_address.py�test_addressComparison s z+AddressTestCaseMixin.test_addressComparisonc C s&