summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urlparse.py
diff options
context:
space:
mode:
authorSenthil Kumaran <senthil@uthcode.com>2012-05-19 00:10:40 (GMT)
committerSenthil Kumaran <senthil@uthcode.com>2012-05-19 00:10:40 (GMT)
commitea24dda01f0bc151b55e922a1d5ec2b6193c8006 (patch)
treea232350a33051a02ba075d3b9df109c1cfc028b9 /Lib/test/test_urlparse.py
parent280e9f7ce5c441658c48680299e3e40ec76b03ed (diff)
downloadcpython-ea24dda01f0bc151b55e922a1d5ec2b6193c8006.zip
cpython-ea24dda01f0bc151b55e922a1d5ec2b6193c8006.tar.gz
cpython-ea24dda01f0bc151b55e922a1d5ec2b6193c8006.tar.bz2
Issue9374 - Generic parsing of query and fragment portion of urls for any scheme
Diffstat (limited to 'Lib/test/test_urlparse.py')
-rw-r--r--Lib/test/test_urlparse.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_urlparse.py b/Lib/test/test_urlparse.py
index 39a897a..827282c 100644
--- a/Lib/test/test_urlparse.py
+++ b/Lib/test/test_urlparse.py
@@ -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