Adding additional examples of valid urls as per RFC 3986 (for issue8339)

This commit is contained in:
Senthil Kumaran 2010-04-12 06:50:24 +00:00
parent 5a96543b36
commit d10b65eb68
1 changed files with 1 additions and 1 deletions

View File

@ -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)