Issue9374 - Generic parsing of query and fragment portion of urls for any scheme

This commit is contained in:
Senthil Kumaran 2012-05-19 08:10:40 +08:00
parent 280e9f7ce5
commit ea24dda01f
3 changed files with 9 additions and 9 deletions

View file

@ -493,6 +493,10 @@ class UrlParseTestCase(unittest.TestCase):
('s3','foo.com','/stuff','','',''))
self.assertEqual(urlparse.urlparse("x-newscheme://foo.com/stuff"),
('x-newscheme','foo.com','/stuff','','',''))
self.assertEqual(urlparse.urlparse("x-newscheme://foo.com/stuff?query#fragment"),
('x-newscheme','foo.com','/stuff','','query','fragment'))
self.assertEqual(urlparse.urlparse("x-newscheme://foo.com/stuff?query"),
('x-newscheme','foo.com','/stuff','','query',''))
def test_withoutscheme(self):
# Test urlparse without scheme