ó ükWc@sƒddlZddlmZmZddlZdejfd„ƒYZdejfd„ƒYZd„Z e dkre ƒndS( i˙˙˙˙N(t test_supportttest_genericpathtMacPathTestCasecBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCs|jtjdƒdƒdS(Nsxx:yy(t assertEqualtmacpathtabspath(tself((s'/usr/lib/python2.7/test/test_macpath.pyt test_abspathscCs’tj}|j|dƒƒ|j|dƒƒ|j|dƒƒ|j|dƒƒ|j|dƒƒ|j|dƒƒ|j|dƒƒdS(Nsxx:yysxx:yy:sxx:tfoos:foos:foo:bars :foo:bar:(Rtisabst assertTruet assertFalse(RR ((s'/usr/lib/python2.7/test/test_macpath.pyt test_isabs s cCsetj}|j|dƒd ƒ|j|dƒd ƒ|j|dƒd ƒ|j|dƒd ƒdS(Nsfoo:barsfoo:tbarsconky:mountpoint:foo:barsconky:mountpoint:foot:ts:conky:mountpoint:s:conky:mountpoint(sfoo:R (sconky:mountpoint:fooR (RR(s:conky:mountpointR(RtsplitR(RR((s'/usr/lib/python2.7/test/test_macpath.pyt test_splits cCsźtj}|j|ddƒdƒ|j|ddƒdƒ|j|ddƒdƒ|j|ddƒdƒ|j|ddƒdƒ|j|dd ƒdƒ|j|d d ƒd ƒ|j|dd ƒdƒ|j|d d ƒd ƒ|j|d d ƒd ƒ|j|d d ƒd ƒ|j|d ddƒdƒ|j|d d ƒdƒ|j|d dƒdƒ|j|dddƒdƒ|j|ddƒdƒ|j|d dƒdƒdS(Ntatbs:a:bs:as:a:s:a::s:a::bs::bRsa:Rsa:btcsa:b:cs:cs:bs:a:b:csb:(RtjoinR(RR((s'/usr/lib/python2.7/test/test_macpath.pyt test_join s$ cCs§tj}|j|dƒd ƒ|j|dƒd ƒ|j|dƒd ƒ|j|dƒdƒ|j|dƒdƒ|j|dƒdƒ|j|d ƒdƒdS(Ns:foo.exts:foos.exts foo:foo.extsfoo:fooRs foo.ext:foos :foo.ext:s foo.bar.extsfoo.bar(s:foos.ext(sfoo:foos.ext(s.extR(s foo.ext:fooR(s :foo.ext:R(RR(sfoo.bars.ext(RtsplitextR(RR((s'/usr/lib/python2.7/test/test_macpath.pyt test_splitext4s cCs1x*dD]"}|jtj|ƒtdƒqWdS( Nuu.u/u\u:u///foo/.//bar//s*normpath() returned str instead of unicode(uu.u/u\u:u///foo/.//bar//(tassertIsInstanceRtnormpathtunicode(Rtpath((s'/usr/lib/python2.7/test/test_macpath.pyt test_normpath>s (t__name__t __module__RR RRRR(((s'/usr/lib/python2.7/test/test_macpath.pyRs    t MacCommonTestcBseZeZRS((RRRt pathmodule(((s'/usr/lib/python2.7/test/test_macpath.pyR DscCstjttƒdS(N(Rt run_unittestRR (((s'/usr/lib/python2.7/test/test_macpath.pyt test_mainHst__main__( RttestRRtunittesttTestCaseRt CommonTestR R#R(((s'/usr/lib/python2.7/test/test_macpath.pyts  >