ó
]c           @   sŠ   d  Z  d d l m Z d d l m Z d d l m Z d d l m	 Z	 d d l
 Z
 e j Z d d d     YZ d	 e
 j f d
     YZ e d k rĶ e
 j d d  n  d S(   s$   Test idlelib.help_about.

Coverage:
iĸĸĸĸ(   t   aboutDialog(   t   textView(   t   Func(   t   MboxNt   Dummy_about_dialogc           B   s8   e  Z e j j Z e j j Z e j j Z	 e j
 j Z
 RS(    (   t   __name__t
   __module__t   Aboutt   ShowIDLECreditst   im_funct   idle_creditst   ShowIDLEAboutt   idle_readmet   ShowIDLENEWSt	   idle_newst   display_file_text(    (    (    s1   lib/python2.7/idlelib/idle_test/test_helpabout.pyR      s   t   DisplayFileTestc           B   s>   e  Z d  Z e   Z e d    Z e d    Z d   Z RS(   s4   Test that .txt files are found and properly decoded.c         C   sX   t  j |  _ t  j |  _ t   |  _ t   |  _ |  j t  _ |  j t  _ t	   |  _
 d  S(   N(   t   textviewt   tkMessageBoxt	   orig_mboxt	   view_textt	   orig_viewR   t   mboxR   t   viewR   R   (   t   cls(    (    s1   lib/python2.7/idlelib/idle_test/test_helpabout.pyt
   setUpClass   s    c         C   s   |  j  t _ |  j j t _ d  S(   N(   R   R   R   R   R	   R   (   R   (    (    s1   lib/python2.7/idlelib/idle_test/test_helpabout.pyt   tearDownClass#   s    c         C   s   xz |  j  j |  j  j |  j  j f D]W } d |  j j _ t |  j _	 |   |  j
 |  j j j d  |  j
 |  j j	 t  q" Wd  S(   Nt    (   t   dialogR
   R   R   R   t	   showerrort   messaget   FalseR   t   calledt   assertEqualt   True(   t   selft   handler(    (    s1   lib/python2.7/idlelib/idle_test/test_helpabout.pyt   test_file_isplay(   s    	(	   R   R   t   __doc__R   R   t   classmethodR   R   R%   (    (    (    s1   lib/python2.7/idlelib/idle_test/test_helpabout.pyR      s
   	
t   __main__t	   verbosityi   (    (   R&   t   idlelibR    t
   help_aboutR   R   t   idlelib.idle_test.mock_idleR   t   idlelib.idle_test.mock_tkR   t   unittestt   AboutDialogR   R   t   TestCaseR   R   t   main(    (    (    s1   lib/python2.7/idlelib/idle_test/test_helpabout.pyt   <module>   s   		