← Back
Editing: test_convenience.cpython-38.pyc
U W[� � @ sP d Z ddlmZmZmZ ddlmZ ddlmZ ddl m Z G dd� de�Zd S ) zO Test cases for convenience functionality in L{twisted._threads._convenience}. � )�absolute_import�division�print_function)�SynchronousTestCase� )�Quit)�AlreadyQuitc @ s8 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� ZdS ) � QuitTestsz Tests for L{Quit} c C s t � }| �|jd� dS )z3 L{Quit.isSet} starts as L{False}. FN)r �assertEqual�isSet��self�quit� r �H/usr/lib/python3/dist-packages/twisted/_threads/test/test_convenience.py�test_isInitiallySet s zQuitTests.test_isInitiallySetc C s t � }|�� | �|jd� dS )z< L{Quit.set} sets L{Quit.isSet} to L{True}. TN)r �setr r r r r r �test_setSetsSet s zQuitTests.test_setSetsSetc C s t � }| �|�� d� dS )zK L{Quit.check} initially does nothing and returns L{None}. N)r ZassertIs�checkr r r r �test_checkDoesNothing&