ó
úR_c           @` s   d  d l  m Z m Z m Z d  d l Z d  d l Z d e j f d     YZ e j e	 e d  d  d e f d     Y Z
 e d	 k r e j   n  d S(
   i    (   t   absolute_importt   print_functiont   divisionNt
   TestFSPathc           B` sY   e  Z d    Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z	 d   Z
 RS(	   c         C` s   d  |  _ d  S(   N(   t   Nonet   _TestFSPath__path(   t   self(    (    sR   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__compat.pyt   setUp   s    c         C` s&   |  j  d  k	 r |  j  St d   d  S(   Ns   Accessing path data(   R   R   t   AttributeError(   R   (    (    sR   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__compat.pyt
   __fspath__   s    c         C` s   d d l  m } | |  S(   Ni    (   t   _fspath(   t   gevent._compatR
   (   R   t   argR
   (    (    sR   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__compat.pyt   _callFUT   s    c         C` s#   d } |  j  | |  j |   d  S(   Nu   path(   t   assertIsR   (   R   t   s(    (    sR   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__compat.pyt	   test_text   s    c         C` s#   d } |  j  | |  j |   d  S(   Nt   path(   R   R   (   R   R   (    (    sR   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__compat.pyt
   test_bytes   s    c         C` s'   |  j  t   |  j d   Wd  QXd  S(   N(   t   assertRaisest	   TypeErrorR   R   (   R   (    (    sR   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__compat.pyt	   test_None   s    c         C` sN   d |  _  |  j |  j  |  j |    d |  _  |  j |  j  |  j |    d  S(   Nu   textt   bytes(   R   R   R   (   R   (    (    sR   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__compat.pyt   test_working_path    s    		c         C` s7   |  j  |  j  |  j t   |  j |   Wd  QXd  S(   N(   t   assertIsNoneR   R   R   R   (   R   (    (    sR   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__compat.pyt    test_failing_path_AttributeError'   s    c         C` s3   t    |  _ |  j t   |  j |   Wd  QXd  S(   N(   t   objectR   R   R   R   (   R   (    (    sR   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__compat.pyt   test_fspath_non_str,   s    (   t   __name__t
   __module__R   R	   R   R   R   R   R   R   R   (    (    (    sR   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__compat.pyR      s   								t   fspaths   Tests native os.fspatht   TestNativeFSPathc           B` s   e  Z d    Z RS(   c         C` s   t  j |  S(   N(   t   osR   (   R   R   (    (    sR   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__compat.pyR   4   s    (   R   R   R   (    (    (    sR   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__compat.pyR   1   s   t   __main__(   t
   __future__R    R   R   R    t   unittestt   TestCaseR   t
   skipUnlesst   hasattrR   R   t   main(    (    (    sR   /var/www/syncserver/local/lib/python2.7/site-packages/gevent/tests/test__compat.pyt   <module>   s   +