OwlCyberSecurity - MANAGER
Edit File: test_search.cpython-36.opt-1.pyc
3 � f� ������������������@���sx���d�Z�ddlmZ�ddlZddlmZ�ed��ddlmZmZm Z �ddlm Z �G�dd ��d ej�Ze d krtejddd��dS�) zTest search, coverage 69%.�����)�searchN)�requiresZgui)�Tk�Text� BooleanVar)�searchenginec���������������@���s<���e�Zd�Zedd���Zedd���Zdd��Zdd��Zd d ��ZdS�)�SearchDialogTestc�������������C���s���t���|�_d�S�)N)r����root)�cls��r����B/opt/alt/python36/lib64/python3.6/idlelib/idle_test/test_search.py� setUpClass���s����zSearchDialogTest.setUpClassc�������������C���s���|�j�j���|�`�d�S�)N)r ���Zdestroy)r ���r���r���r���� tearDownClass���s���� zSearchDialogTest.tearDownClassc�������������C���sJ���t�j|�j�|�_tj|�j|�j�|�_dd��|�j_t|�j�|�_ |�j j dd��d�S�)Nc���������������S���s���d�S�)Nr���r���r���r���r����<lambda>���s����z(SearchDialogTest.setUp.<locals>.<lambda>z1.0zHello World!)r���ZSearchEnginer ����enginer���ZSearchDialog�dialog�bellr����text�insert)�selfr���r���r����setUp���s ����zSearchDialogTest.setUpc�������������C���s����|�j�}|�jjd��|�j|�jj|���dd��|�j_|�jjd��|�j|�jj|���|�jjd��|�j|�jj|���|�jjd��|�j|�jj|���|�jjd��|�j|�jj|���t|�j d�|�j_ |�jjd ��|�j|�jj|���d�S�) N��c���������������S���s���d�S�)Nr���r���r���r���r���r���(���s����z2SearchDialogTest.test_find_again.<locals>.<lambda>ZHelloZGoodbyezWorld!zHello World!Tz W[aeiouy]r)r���r���ZsetpatZassertFalser���Z find_againr���� assertTruer���r ���Zrevar)r���r���r���r���r����test_find_again"���s����z SearchDialogTest.test_find_againc�������������C���s����|�j�}|�j�jdd��|jddd��|�j|�jj|���|jddd��|jddd��|�j|�jj|���|jddd��|jddd��|�j|�jj|���|jdd��d�S�) Nz2.0zHello World!Zselz1.0z1.4�endz1.6z1.11)r���r���Ztag_addr���r���Zfind_selectionZ tag_remove�delete)r���r���r���r���r����test_find_selection;���s����z$SearchDialogTest.test_find_selectionN) �__name__� __module__�__qualname__�classmethodr ���r���r���r���r���r���r���r���r���r������s ���r����__main__����)� verbosity�exit)�__doc__Zidlelibr���ZunittestZtest.supportr���Ztkinterr���r���r���r���ZTestCaser���r����mainr���r���r���r����<module>���s���?