← Back
Editing: test_testcase.cpython-38.pyc
U W[� � @ s\ d Z ddlmZmZ ddlmZmZ G dd� de�ZG dd� dee�Z G dd � d ee�Z d S )zm Direct unit tests for L{twisted.trial.unittest.SynchronousTestCase} and L{twisted.trial.unittest.TestCase}. � )�division�absolute_import)�SynchronousTestCase�TestCasec @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) � TestCaseMixinz L{TestCase} tests. c C s | � d�| _| � d�| _dS )z� Create a couple instances of C{MyTestCase}, each for the same test method, to be used in the test methods of this class. �test_1N)� MyTestCase�first�second��self� r �B/usr/lib/python3/dist-packages/twisted/trial/test/test_testcase.py�setUp s zTestCaseMixin.setUpc C s: | � | j| jk� | � | j| jk� | �| j| jk� dS )z� In order for one test method to be runnable twice, two TestCase instances with the same test method name must not compare as equal. N)Z assertTruer r ZassertFalser r r r � test_equality s zTestCaseMixin.test_equalityc C s, i }d|| j <