ó {G_Tc@sNddlZddlZdejfd„ƒYZedkrJejƒndS(iÿÿÿÿNtMacUrl2PathTestCasecBseZd„Zd„ZRS(cCs|jdtjdƒƒ|jdtjdƒƒ|jdtjdƒƒ|jdtjdƒƒ|jd tjd ƒƒ|jttjd ƒ|jdtjd ƒƒ|jttjd ƒ|jdtjdƒƒ|jdtjdƒƒ|jdtjdƒƒdS(Ns :index.htmls index.htmls:bar:index.htmlsbar/index.htmlsfoo:bar:index.htmls/foo/bar/index.htmlsfoo:bars /foo/bar/tt/shttp://foo.coms ///index.htmls //index.htmls ./index.htmlsfoo/../index.htmls ::index.htmls ../index.html(t assertEqualt macurl2patht url2pathnamet assertRaisest RuntimeError(tself((s1/usr/local/lib/python2.7/test/test_macurl2path.pyttest_url2pathnamescCsû|jdtjdƒƒ|jdtjdƒƒ|jdtjdƒƒ|jdtjdƒƒ|jd tjd ƒƒ|jd tjd ƒƒ|jd tjd ƒƒ|jd tjdƒƒ|jttjdƒ|jdtjdƒƒdS(Ntdrivesdrive:s drive/dirs drive:dir:sdrive/dir/filesdrive:dir:files drive/files drive:filetfiles:filetdirs:dir:sdir/files :dir:fileRs dir/../files dir::file(RRt pathname2urlRR(R((s1/usr/local/lib/python2.7/test/test_macurl2path.pyttest_pathname2urls(t__name__t __module__R R(((s1/usr/local/lib/python2.7/test/test_macurl2path.pyRs t__main__(RtunittesttTestCaseRRtmain(((s1/usr/local/lib/python2.7/test/test_macurl2path.pyts