관리-도구
편집 파일: test_config_name.cpython-33.pyc
� ��f_ c @ 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( u. Unit tests for idlelib.configSectionNameDialogi N( u Varu Mbox( u configSectionNameDialogc B sY | Ee 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( u Dummy_name_dialogu usedc C s d | _ d S( NT( u Trueu destroyed( u self( ( uG /opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_config_name.pyu destroy s u Dummy_name_dialog.destroyNF( u __name__u __module__u __qualname__u name_dialogu name_oku Oku Cancelu used_namesu Varu nameu Noneu resultu Falseu destroyedu destroy( u __locals__( ( uG /opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_config_name.pyu Dummy_name_dialog s u Dummy_name_dialogc B s� | Ee 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( u ConfigNameTestc C s t t _ d S( N( u Mboxu name_dialog_moduleu tkMessageBox( u cls( ( uG /opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_config_name.pyu setUpClass s u ConfigNameTest.setUpClassc C s t t _ d S( N( u orig_mboxu name_dialog_moduleu tkMessageBox( u cls( ( uG /opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_config_name.pyu tearDownClass s u ConfigNameTest.tearDownClassc C sV | j j j d � | j | j j � d � | j t j d � | j d t j � d S( Nu u u Name Erroru No( u dialogu nameu setu assertEqualu name_oku showerroru titleu assertInu message( u self( ( uG /opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_config_name.pyu test_blank_name$ s u ConfigNameTest.test_blank_namec C sV | j j j d � | j | j j � d � | j t j d � | j d t j � d S( Nu usedu u Name Erroru use( u dialogu nameu setu assertEqualu name_oku showerroru titleu assertInu message( u self( ( uG /opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_config_name.pyu test_used_name* s u ConfigNameTest.test_used_namec C sZ | j j j d d � | j | j j � d � | j t j d � | j d t j � d S( Nu goodi u u Name Erroru too long( u dialogu nameu setu assertEqualu name_oku showerroru titleu assertInu message( u self( ( uG /opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_config_name.pyu test_long_name0 s u ConfigNameTest.test_long_namec C sL | j j j d � d t _ | j | j j � d � | j t j d � d S( Nu good u No Erroru good( u dialogu nameu setu showerroru titleu assertEqualu name_ok( u self( ( uG /opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_config_name.pyu test_good_name6 s u ConfigNameTest.test_good_namec C sY d | j _ | j j j d � | j j � | j | j j d � | j | j j � d S( Nu goodF( u Falseu dialogu destroyedu nameu setu Oku assertEqualu resultu assertTrue( u self( ( uG /opt/alt/python33/lib64/python3.3/idlelib/idle_test/test_config_name.pyu test_ok<