관리-도구
편집 파일: test_config_name.cpython-34.pyc
� e f_ � @ s� d Z d d l Z d d l m Z m Z d d l m Z e j Z Gd d � d � Z e j Z e j Z Gd d � d e j � Z e d k r� e j d d d d � n d S)z.Unit tests for idlelib.configSectionNameDialog� N)�Var�Mbox)�configSectionNameDialogc @ sU e Z d Z e j Z e j Z e j Z d g Z e � Z d Z d Z d d � Z d S)�Dummy_name_dialog�usedNFc C s d | _ d S)NT)� destroyed)�self� r �G/opt/alt/python34/lib64/python3.4/idlelib/idle_test/test_config_name.py�destroy s zDummy_name_dialog.destroy) �__name__� __module__�__qualname__�name_dialog�name_ok�Ok�CancelZ used_namesr �name�resultr r r r r r r s r c @ s� e Z d Z e � Z e d d � � Z e d d � � Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d S)�ConfigNameTestc C s t t _ d S)N)r �name_dialog_module�tkMessageBox)�clsr r r � setUpClass s zConfigNameTest.setUpClassc C s t t _ d S)N)� orig_mboxr r )r r r r � tearDownClass s zConfigNameTest.tearDownClassc C sV | j j j d � | j | j j � d � | j t j d � | j d t j � d S)N� � z Name ErrorZNo) �dialogr �set�assertEqualr � showerror�title�assertIn�message)r r r r �test_blank_name$ s zConfigNameTest.test_blank_namec C sV | j j j d � | j | j j � d � | j t j d � | j d t j � d S)Nr r z Name ErrorZuse) r r r r r r! r"