ó
‹wÛjc           @   sN   d  d l  Z  d  d l Z d e j f d „  ƒ  YZ e d k rJ e j ƒ  n  d S(   iÿÿÿÿNt   MacUrl2PathTestCasec           B   s   e  Z d  „  Z d „  Z RS(   c         C   s  |  j  d t j d ƒ ƒ |  j  d t j d ƒ ƒ |  j  d t j d ƒ ƒ |  j  d t j d ƒ ƒ |  j  d	 t j d
 ƒ ƒ |  j t t j d ƒ |  j  d t j d ƒ ƒ |  j t t j d ƒ |  j  d t j d ƒ ƒ |  j  d t j d ƒ ƒ |  j  d t j d ƒ ƒ d  S(   Ns   :index.htmls
   index.htmls   :bar:index.htmls   bar/index.htmls   foo:bar:index.htmls   /foo/bar/index.htmls   foo:bars	   /foo/bar/t    t   /s   http://foo.coms   ///index.htmls   //index.htmls   ./index.htmls   foo/../index.htmls   ::index.htmls   ../index.html(   t   assertEqualt   macurl2patht   url2pathnamet   assertRaisest   RuntimeError(   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_macurl2path.pyt   test_url2pathname   s    c         C   sû   |  j  d t j d ƒ ƒ |  j  d t j d ƒ ƒ |  j  d t j d ƒ ƒ |  j  d t j d ƒ ƒ |  j  d	 t j d	 ƒ ƒ |  j  d	 t j d
 ƒ ƒ |  j  d t j d ƒ ƒ |  j  d t j d ƒ ƒ |  j t t j d ƒ |  j  d t j d ƒ ƒ d  S(   Nt   drives   drive:s	   drive/dirs
   drive:dir:s   drive/dir/files   drive:dir:files
   drive/files
   drive:filet   files   :filet   dirs   :dir:s   dir/files	   :dir:fileR   s   dir/../files	   dir::file(   R   R   t   pathname2urlR   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_macurl2path.pyt   test_pathname2url   s    (   t   __name__t
   __module__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_macurl2path.pyR       s   	t   __main__(   R   t   unittestt   TestCaseR    R   t   main(    (    (    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_macurl2path.pyt   <module>   s   