ó
wŰjc           @   s   d  d l  Z  d  d l m Z m Z d  d l Z d e j f d     YZ d e j f d     YZ d   Z	 e
 d k r e	   n  d S(	   i˙˙˙˙N(   t   test_supportt   test_genericpatht   MacPathTestCasec           B   sG   e  Z d    Z d   Z d   Z d   Z d   Z e j d    Z	 RS(   c         C   s   |  j  t j d  d  d  S(   Ns   xx:yy(   t   assertEqualt   macpatht   abspath(   t   self(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_macpath.pyt   test_abspath   s    c         C   s   t  j } |  j | d   |  j | d   |  j | d   |  j | d   |  j | d   |  j | d   |  j | d   d  S(   Ns   xx:yys   xx:yy:s   xx:t   foos   :foos   :foo:bars	   :foo:bar:(   R   t   isabst
   assertTruet   assertFalse(   R   R	   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_macpath.pyt
   test_isabs   s    	c         C   se   t  j } |  j | d  d
  |  j | d  d  |  j | d  d  |  j | d  d  d  S(   Ns   foo:bars   foo:t   bars   conky:mountpoint:foo:bars   conky:mountpoint:foot   :t    s   :conky:mountpoint:s   :conky:mountpoint(   s   foo:R   (   s   conky:mountpoint:fooR   (   R   R   (   s   :conky:mountpointR   (   R   t   splitR   (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_macpath.pyt
   test_split   s    	c         C   sź  t  j } |  j | d d  d  |  j | d d  d  |  j | d d  d  |  j | d d  d  |  j | d d  d  |  j | d d	  d  |  j | d
 d	  d
  |  j | d d  d  |  j | d
 d  d
  |  j | d d  d  |  j | d d  d  |  j | d d d  d  |  j | d d  d  |  j | d d  d  |  j | d d d  d  |  j | d d  d  |  j | d
 d  d  d  S(   Nt   at   bs   :a:bs   :as   :a:s   :a::s   :a::bs   ::bR   s   a:R   s   a:bt   cs   a:b:cs   :cs   :bs   :a:b:cs   b:(   R   t   joinR   (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_macpath.pyt	   test_join    s$    	c         C   s§   t  j } |  j | d  d  |  j | d  d  |  j | d  d  |  j | d  d  |  j | d  d  |  j | d  d  |  j | d	  d  d  S(   Ns   :foo.exts   :foos   .exts   foo:foo.exts   foo:fooR   s   foo.ext:foos	   :foo.ext:s   foo.bar.exts   foo.bar(   s   :foos   .ext(   s   foo:foos   .ext(   s   .extR   (   s   foo.ext:fooR   (   s	   :foo.ext:R   (   R   R   (   s   foo.bars   .ext(   R   t   splitextR   (   R   R   (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_macpath.pyt   test_splitext4   s    	c         C   s1   x* d D]" } |  j  t j |  t d  q Wd  S(	   Nu    u   .u   /u   \u   :u   ///foo/.//bar//s*   normpath() returned str instead of unicode(   u    u   .u   /u   \u   :u   ///foo/.//bar//(   t   assertIsInstanceR   t   normpatht   unicode(   R   t   path(    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_macpath.pyt   test_normpath>   s    (
   t   __name__t
   __module__R   R   R   R   R   R    t   requires_unicodeR   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_macpath.pyR      s   		
			
t   MacCommonTestc           B   s   e  Z e Z RS(    (   R   R   R   t
   pathmodule(    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_macpath.pyR!   E   s   c           C   s   t  j t t  d  S(   N(   R    t   run_unittestR   R!   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_macpath.pyt	   test_mainI   s    t   __main__(   R   t   testR    R   t   unittestt   TestCaseR   t
   CommonTestR!   R$   R   (    (    (    s   /home/sim/yocto/scarthgap/build/tmp/work/x86_64-linux/python-native/2.7.18/recipe-sysroot-native/usr/lib/python2.7/test/test_macpath.pyt   <module>   s   ?	