Lines Matching refs:url2pathname
19 from nturl2path import url2pathname, pathname2url
1495 result = urllib.request.url2pathname(expected_url)
1510 result = urllib.request.url2pathname(result)
1522 result = urllib.request.url2pathname(given)
1533 result = urllib.request.url2pathname(url)
1539 result = urllib.request.url2pathname(given)
1629 self.assertEqual(url2pathname("///C|"), 'C:')
1630 self.assertEqual(url2pathname("///C:"), 'C:')
1631 self.assertEqual(url2pathname("///C|/"), 'C:\\')
1635 self.assertEqual(url2pathname("///C/test/"), r'\\\C\test' '\\')
1636 self.assertEqual(url2pathname("////C/test/"), r'\\C\test' '\\')
1639 self.assertEqual(url2pathname("///C|/foo/bar/spam.foo"),
1643 self.assertRaises(IOError, url2pathname, "///\u00e8|/")
1651 self.assertEqual(url2pathname(pathname2url(path)), path)
1679 self.assertEqual(pathname2url(url2pathname(path)), path)