Kaydet (Commit) 2ffceb67 authored tarafından Senthil Kumaran's avatar Senthil Kumaran

Merged revisions 79988 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79988 | senthil.kumaran | 2010-04-12 12:20:24 +0530 (Mon, 12 Apr 2010) | 3 lines

  Adding additional examples of valid urls as per RFC 3986 (for issue8339)
........
üst 1b5a2931
...@@ -138,7 +138,7 @@ class UrlParseTestCase(unittest.TestCase): ...@@ -138,7 +138,7 @@ class UrlParseTestCase(unittest.TestCase):
(base, relurl, expected)) (base, relurl, expected))
def test_unparse_parse(self): def test_unparse_parse(self):
for u in ['Python', './Python','x-newscheme://foo.com/stuff']: for u in ['Python', './Python','x-newscheme://foo.com/stuff','x://y','x:/y','x:/','/',]:
self.assertEqual(urlparse.urlunsplit(urlparse.urlsplit(u)), u) self.assertEqual(urlparse.urlunsplit(urlparse.urlsplit(u)), u)
self.assertEqual(urlparse.urlunparse(urlparse.urlparse(u)), u) self.assertEqual(urlparse.urlunparse(urlparse.urlparse(u)), u)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment