ó
ěÔIc           @   sŚ   d  Z  d d l m Z d d l Z e j d k r˘ d Z y d d l m Z Wn e	 k
 rd d Z n Xd d l
 Z d d l Z d e j f d     YZ e e _ n  d S(	   s   Test win32 shortcut script
i˙˙˙˙(   t   unittestNt   nt(   t   shortcutsP   On windows, twisted.python.shortcut is not available in the absence of win32com.t   ShortcutTestc           B   s   e  Z d    Z RS(   c         C   s{   t  j d  } |  j   d } | j |  |  j t j j |   t  j |  } |  j | j	 d  d j
 d   d  S(   Ns   test_shortcut.pys   .lnki    (   R   t   Shortcutt   mktempt   savet   assert_t   ost   patht   existst   opent   GetPatht   endswith(   t   selft   s1t   tempnamet   sc(    (    s>   /usr/lib/python2.7/dist-packages/twisted/test/test_shortcut.pyt
   testCreate   s    (   t   __name__t
   __module__R   (    (    (    s>   /usr/lib/python2.7/dist-packages/twisted/test/test_shortcut.pyR      s   (   t   __doc__t   twisted.trialR    R   t   namet   Nonet   skipWindowsNopywin32t   twisted.pythonR   t   ImportErrort   os.patht   syst   TestCaseR   t   skip(    (    (    s>   /usr/lib/python2.7/dist-packages/twisted/test/test_shortcut.pyt   <module>   s   
