Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.9/test/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.9/test/__pycache__/test_keyword.cpython-39.pyc

a

��g��@sBddlZddlZddlmZGdd�dej�Zedkr>e��dS)�N)�use_old_parserc@sDeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dS)�Test_iskeywordcCs|�t�d��dS)N�True)Z
assertTrue�keyword�	iskeyword��self�r	�-/usr/local/lib/python3.9/test/test_keyword.py�test_true_is_a_keywordsz%Test_iskeyword.test_true_is_a_keywordcCs|�t�d��dS)N�TRUE��assertFalserrrr	r	r
�$test_uppercase_true_is_not_a_keyword
sz3Test_iskeyword.test_uppercase_true_is_not_a_keywordcCs|�t�d��dS�Nr
rr	r	r
� test_none_value_is_not_a_keyword
sz/Test_iskeyword.test_none_value_is_not_a_keywordcCs4tj}|�ttd|�gd�t_|�t�d��dS)N�kwlist)Zits�all�eggsZbeans�and�a�slicer)rrZ
addCleanup�setattrrr)rZoldlistr	r	r
�2test_changing_the_kwlist_does_not_affect_iskeywords
zATest_iskeyword.test_changing_the_kwlist_does_not_affect_iskeywordc	Cs`ttj�}t�r|�d�|D]<}|�t��t|�d��Wd�q1sP0YqdS)N�__peg_parser__z = 42)�setrrr�discardZassertRaises�SyntaxError�exec)rZall_keywords�keyr	r	r
�*test_all_keywords_fail_to_be_used_as_namess

z9Test_iskeyword.test_all_keywords_fail_to_be_used_as_namescCs |�dtj�|�dtj�dS)N�async�await)ZassertInrrrr	r	r
�!test_async_and_await_are_keywords sz0Test_iskeyword.test_async_and_await_are_keywordscCs|�ttj�tj�dSr)ZassertListEqual�sortedrrrr	r	r
�test_keywords_are_sorted$sz'Test_iskeyword.test_keywords_are_sortedN)
�__name__�
__module__�__qualname__rrrrr r#r%r	r	r	r
rsr�__main__)rZunittestZtest.supportrZTestCaserr&�mainr	r	r	r
�<module>s
"

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists