ó
‹²,]c           @   sˆ   d  Z  d d l Z d d l Z d d l m Z e j d „  ƒ Z e j j e j	 d k d d ƒd „  ƒ Z
 e d	 k r„ e j ƒ  n  d S(
   s   
Tests for shortcuts.py
iÿÿÿÿN(   t   ShortcutsTablec         C   s   t  ƒ  } |  j | ƒ | S(   s   Set up shortcuts.(   R    t	   addWidget(   t   qtbott   widget(    (    sA   lib/python2.7/site-packages/spyder/plugins/tests/test_shorcuts.pyt	   shortcuts   s    	t   ntt   reasons   It segfaults too much on Linuxc         C   s$   |  j  ƒ  |  j ƒ  |  s  t ‚ d S(   s   Run shortcuts table.N(   t   showt   check_shortcutst   AssertionError(   R   (    (    sA   lib/python2.7/site-packages/spyder/plugins/tests/test_shorcuts.pyt   test_shortcuts   s    

t   __main__(   t   __doc__t   ost   pytestt   spyder.plugins.shortcutsR    t   fixtureR   t   markt   skipift   nameR
   t   __name__t   main(    (    (    sA   lib/python2.7/site-packages/spyder/plugins/tests/test_shorcuts.pyt   <module>	   s   +