← Back
Editing: test_util.cpython-38.pyc
U ��W[�` � @ sL d Z ddlmZmZ ddlZddlZddlmZ ddlm Z ddl mZ ddlm Z ddlmZ dd lmZ dd lmZ ddlmZ ddlmZ dd lmZmZmZmZ G dd� de�ZG dd� de�ZG dd� de�ZG dd� de �Z!G dd� de �Z"G dd� de�Z#G dd� de�Z$G dd� de�Z%G dd� de�Z&G d d!� d!e�Z'dS )"z! Tests for L{twisted.trial.util} � )�division�absolute_importN)�implementer)�NativeStringIO)�filepath)�IProcessTransport)�defer)�DelayedCall)�Failure)�SynchronousTestCase)�util)�DirtyReactorAggregateError�_Janitor�excInfoOrFailureToExcInfo�acquireAttributec @ s0 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd S )�MktempTestszm Tests for L{TestCase.mktemp}, a helper function for creating temporary file or directory names. c C s: | � � }tj�|��tj�dd� }| �|dddg� dS )z� The path name returned by C{mktemp} is directly beneath a directory which identifies the test method which created the name. N���ztwisted.trial.test.test_utilr � test_name)�mktemp�os�path�dirname�split�sep�assertEqual)�self�name�dirs� r �>/usr/lib/python3/dist-packages/twisted/trial/test/test_util.pyr # s �zMktempTests.test_namec C s | � � }| �|| � � � dS )zF Repeated calls to C{mktemp} return different values. N)r ZassertNotEqual)r r r r r �test_unique. s zMktempTests.test_uniquec C s<