
,]c           @   sX   d  Z  d d l Z d d l m Z d d l m Z d   Z e d k rT e j   n  d S(   s   
Tests for variableexplorer.py
iN(   t   qapplication(   t   VariableExplorerc         C   s   d   } |  j  t d d  |  j  d d d g  |  j  t d |  t   } t d   j   } i d d 6d	 d 6d
 d 6} | | k s t  d  S(   Nc         S   s4   | d k r d S| d k r  d S| d k r0 d Sd  S(   Nt   remote1t
   remote1valt   remote2t
   remote2valt   dataframe_formatt   3d(    (   t   selft   option(    (    sI   lib/python2.7/site-packages/spyder/plugins/tests/test_variableexplorer.pyt   mock_get_option   s       t   CONF_SECTIONt   sects/   spyder.plugins.variableexplorer.REMOTE_SETTINGSR   R   t
   get_optionR   R   s   %3dR   (   t   setattrR   R    t   Nonet   get_settingst   AssertionError(   t   monkeypatchR
   t   appt   settingst   expected(    (    sI   lib/python2.7/site-packages/spyder/plugins/tests/test_variableexplorer.pyt   test_get_settings   s    			
t   __main__(	   t   __doc__t   pytestt   spyder.utils.qthelpersR    t   spyder.plugins.variableexplorerR   R   t   __name__t   main(    (    (    sI   lib/python2.7/site-packages/spyder/plugins/tests/test_variableexplorer.pyt   <module>   s   	