File: //usr/lib/python3/dist-packages/twisted/trial/test/__pycache__/test_util.cpython-310.pyc
o
�b�L � @ s d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl m
Z
ddlmZ ddl
mZ dd lmZ dd
lmZ ddlmZmZmZmZ G dd
� d
e�ZG dd� de�ZG dd� d�ZG dd� d�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�Z dS )z!
Tests for L{twisted.trial.util}
� N)�StringIO)�implementer)�DelayedCall)�IProcessTransport)�filepath)�Failure)�util)�SynchronousTestCase)�DirtyReactorAggregateError�_Janitor�acquireAttribute�excInfoOrFailureToExcInfoc @ �0 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 s8 | � � }tj�|��tj�dd� }| �|g d�� 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 �assertNotEqual)r r r r r �test_unique/ s zMktempTests.test_uniquec C s<