Lines Matching refs:url2pathname
19 from nturl2path import url2pathname, pathname2url
1338 result = urllib.request.url2pathname(expected_url)
1353 result = urllib.request.url2pathname(result)
1365 result = urllib.request.url2pathname(given)
1376 result = urllib.request.url2pathname(url)
1382 result = urllib.request.url2pathname(given)
1519 self.assertEqual(url2pathname("///C|"), 'C:')
1520 self.assertEqual(url2pathname("///C:"), 'C:')
1521 self.assertEqual(url2pathname("///C|/"), 'C:\\')
1525 self.assertEqual(url2pathname("///C/test/"), r'\\\C\test' '\\')
1526 self.assertEqual(url2pathname("////C/test/"), r'\\C\test' '\\')
1529 self.assertEqual(url2pathname("///C|/foo/bar/spam.foo"),
1533 self.assertRaises(IOError, url2pathname, "///\u00e8|/")
1541 self.assertEqual(url2pathname(pathname2url(path)), path)
1569 self.assertEqual(pathname2url(url2pathname(path)), path)