관리-도구
편집 파일: test_config_key.cpython-36.opt-1.pyc
3 � ft � @ sr d Z ddlmZ ddlmZ ddlZddlmZ ddlm Z ddl mZ G dd � d ej�Z ed krnejdd� dS ) zTest config_key, coverage 75%� )� config_key)�requiresN)�Tk)�Func)� Mbox_funcc @ s� e Zd ZdZG dd� dej�Zedd� �Zedd� �Z dd � Z d d� Zdd � Zdd� Z dd� Zdd� Zdd� Zdd� Zdd� Zdd� ZdS )�ValidationTestz-Test validation methods: OK, KeysOK, bind_ok.c @ s e Zd Zdd� Ze� Ze� ZdS )zValidationTest.Validatorc O s, t jj| f|�|� G dd� d�}|| _d S )Nc @ s e Zd Ze� ZdS )z8ValidationTest.Validator.__init__.<locals>.listKeysFinalN)�__name__� __module__�__qualname__r �get� r r �F/opt/alt/python36/lib64/python3.6/idlelib/idle_test/test_config_key.py� listKeysFinal s r )r � GetKeysDialog�__init__r )�self�args�kwargsr r r r r s z!ValidationTest.Validator.__init__N)r r r r r �GetModifiersr � showerrorr r r r � Validator s r c C sD t d� t� | _| jj� dgddgg}| j| jdd|dd�| _d S ) NZguiz <Key-F12>z<Control-Key-x>z<Control-Key-X>ZTitlez<<Test>>T)Z_utest)r r �rootZwithdrawr �dialog)�clsZkeylistr r r � setUpClass s zValidationTest.setUpClassc C s* | j j� | jj� | jj� | ` | `d S )N)r ZCancelr Zupdate_idletasksZdestroy)r r r r � tearDownClass s zValidationTest.tearDownClassc C s d| j j_d S )N� )r r �message)r r r r �setUp'