summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urlparse.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-03-22 00:56:51 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-03-22 00:56:51 (GMT)
commitf516388de83f945250dfa75779c059f453e0c811 (patch)
tree214e26c56ec0cdcc2c27d487c40e0a5807fcfd1a /Lib/test/test_urlparse.py
parent2b6c26ebe3eab15092b71f0c02962bcb89c9fb55 (diff)
downloadcpython-f516388de83f945250dfa75779c059f453e0c811.zip
cpython-f516388de83f945250dfa75779c059f453e0c811.tar.gz
cpython-f516388de83f945250dfa75779c059f453e0c811.tar.bz2
#17472: add tests for a couple of untested methods in urllib.urlparse.
Original patch by Daniel Wozniak.
Diffstat (limited to 'Lib/test/test_urlparse.py')
-rwxr-xr-xLib/test/test_urlparse.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_urlparse.py b/Lib/test/test_urlparse.py
index 378a427..c938f09 100755
--- a/Lib/test/test_urlparse.py
+++ b/Lib/test/test_urlparse.py
@@ -847,6 +847,14 @@ class UrlParseTestCase(unittest.TestCase):
self.assertEqual(p1.path, '863-1234')
self.assertEqual(p1.params, 'phone-context=+1-914-555')
+ def test_unwrap(self):
+ url = urllib.parse.unwrap('<URL:type://host/path>')
+ self.assertEqual(url, 'type://host/path')
+
+ def test_Quoter_repr(self):
+ quoter = urllib.parse.Quoter(urllib.parse._ALWAYS_SAFE)
+ self.assertIn('Quoter', repr(quoter))
+
def test_main():
support.run_unittest(UrlParseTestCase)