Adding additional examples of valid urls as per RFC 3986 (for issue8339)
This commit is contained in:
parent
5a96543b36
commit
d10b65eb68
|
@ -141,7 +141,7 @@ class UrlParseTestCase(unittest.TestCase):
|
|||
(base, relurl, expected))
|
||||
|
||||
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.urlunparse(urlparse.urlparse(u)), u)
|
||||
|
||||
|
|
Loading…
Reference in New Issue