ó
    Ö›‘hÁ  ã                   óB   • S r SSKJr  SSKJr  SSKJr   " S S\5      rg)	zO
Test cases for convenience functionality in L{twisted._threads._convenience}.
é    )ÚSynchronousTestCaseé   )ÚQuit)ÚAlreadyQuitc                   óJ   • \ rS rSrSrS
S jrS
S jrS
S jrS
S jrS
S jr	S	r
g)Ú	QuitTestsé   z
Tests for L{Quit}
Nc                 óP   • [        5       nU R                  UR                  S5        g)z#
L{Quit.isSet} starts as L{False}.
FN)r   ÚassertEqualÚisSet©ÚselfÚquits     ÚjC:\Users\psant\Downloads\Noiseback\school\venv\Lib\site-packages\twisted/_threads/test/test_convenience.pyÚtest_isInitiallySetÚQuitTests.test_isInitiallySet   s   € ô ‹vˆØ×Ñ˜Ÿ™ UÕ+ó    c                 óp   • [        5       nUR                  5         U R                  UR                  S5        g)z,
L{Quit.set} sets L{Quit.isSet} to L{True}.
TN)r   Úsetr   r   r   s     r   Útest_setSetsSetÚQuitTests.test_setSetsSet   s(   € ô ‹vˆØ�‰Œ
Ø×Ñ˜Ÿ™ TÕ*r   c                 ó\   • [        5       nUR                  5       nU R                  US5        g)z;
L{Quit.check} initially does nothing and returns L{None}.
N)r   ÚcheckÚassertIs)r   r   Úcheckeds      r   Útest_checkDoesNothingÚQuitTests.test_checkDoesNothing"   s$   € ô ‹vˆØ—*‘*“,ˆØ�‰�g˜tÕ$r   c                 óx   • [        5       nUR                  5         U R                  [        UR                  5        g)zE
L{Quit.check} raises L{AlreadyQuit} if L{Quit.set} has been called.
N)r   r   ÚassertRaisesr   r   r   s     r   Útest_checkAfterSetRaisesÚ"QuitTests.test_checkAfterSetRaises*   s(   € ô ‹vˆØ�‰Œ
Ø×Ñœ+ t§z¡zÕ2r   c                 óx   • [        5       nUR                  5         U R                  [        UR                  5        g)zE
L{Quit.set} raises L{AlreadyQuit} if it has been called previously.
N)r   r   r   r   r   s     r   Útest_setTwiceRaisesÚQuitTests.test_setTwiceRaises2   s(   € ô ‹vˆØ�‰Œ
Ø×Ñœ+ t§x¡xÕ0r   © )ÚreturnN)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   r    r#   Ú__static_attributes__r%   r   r   r   r      s    † ñô,ô+ô%ô3÷1r   r   N)r+   Útwisted.trial.unittestr   Ú_conveniencer   Ú	_ithreadsr   r   r%   r   r   Ú<module>r0      s"   ðñõ
 7Ý Ý #ô*1Ð#õ *1r   