Lines Matching refs:url2pathname
6 self.assertEqual(":index.html", macurl2path.url2pathname("index.html"))
7 self.assertEqual(":bar:index.html", macurl2path.url2pathname("bar/index.html"))
8 self.assertEqual("foo:bar:index.html", macurl2path.url2pathname("/foo/bar/index.html"))
9 self.assertEqual("foo:bar", macurl2path.url2pathname("/foo/bar/"))
10 self.assertEqual("", macurl2path.url2pathname("/"))
11 self.assertRaises(RuntimeError, macurl2path.url2pathname, "http://foo.com")
12 self.assertEqual("index.html", macurl2path.url2pathname("///index.html"))
13 self.assertRaises(RuntimeError, macurl2path.url2pathname, "//index.html")
14 self.assertEqual(":index.html", macurl2path.url2pathname("./index.html"))
15 self.assertEqual(":index.html", macurl2path.url2pathname("foo/../index.html"))
16 self.assertEqual("::index.html", macurl2path.url2pathname("../index.html"))