Lines Matching refs:url2pathname
21 from nturl2path import url2pathname, pathname2url
1497 result = urllib.request.url2pathname(expected_url)
1512 result = urllib.request.url2pathname(result)
1524 result = urllib.request.url2pathname(given)
1553 result = urllib.request.url2pathname(url)
1559 result = urllib.request.url2pathname(given)
1649 self.assertEqual(url2pathname("///C|"), 'C:')
1650 self.assertEqual(url2pathname("///C:"), 'C:')
1651 self.assertEqual(url2pathname("///C|/"), 'C:\\')
1655 self.assertEqual(url2pathname("///C/test/"), r'\\\C\test' '\\')
1656 self.assertEqual(url2pathname("////C/test/"), r'\\C\test' '\\')
1659 self.assertEqual(url2pathname("///C|/foo/bar/spam.foo"),
1663 self.assertRaises(IOError, url2pathname, "///\u00e8|/")
1671 self.assertEqual(url2pathname(pathname2url(path)), path)
1699 self.assertEqual(pathname2url(url2pathname(path)), path)