ó
²,]c           @   s{   d  Z  d d l Z d d l m Z m Z e j d    Z e j d    Z d   Z d   Z	 e
 d k rw e j   n  d S(	   s   
Tests for explorer.py
i’’’’N(   t   FileExplorerTestt   ProjectExplorerTestc         C   s   t    } |  j |  | S(   s   Set up FileExplorerTest.(   R    t	   addWidget(   t   qtbott   widget(    (    sA   lib/python2.7/site-packages/spyder/widgets/tests/test_explorer.pyt   file_explorer   s    	c         C   s   t    } |  j |  | S(   s   Set up FileExplorerTest.(   R   R   (   R   R   (    (    sA   lib/python2.7/site-packages/spyder/widgets/tests/test_explorer.pyt   project_explorer   s    	c         C   s*   |  j  d d  |  j   |  s& t  d S(   s   Run FileExplorerTest.i  ią  N(   t   resizet   showt   AssertionError(   R   (    (    sA   lib/python2.7/site-packages/spyder/widgets/tests/test_explorer.pyt   test_file_explorer"   s    
c         C   s*   |  j  d d  |  j   |  s& t  d S(   s   Run ProjectExplorerTest.i  ią  N(   R   R   R	   (   R   (    (    sA   lib/python2.7/site-packages/spyder/widgets/tests/test_explorer.pyt   test_project_explorer)   s    
t   __main__(   t   __doc__t   pytestt   spyder.widgets.explorerR    R   t   fixtureR   R   R
   R   t   __name__t   main(    (    (    sA   lib/python2.7/site-packages/spyder/widgets/tests/test_explorer.pyt   <module>	   s   		