Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f516388

Browse files
committed
#17472: add tests for a couple of untested methods in urllib.urlparse.
Original patch by Daniel Wozniak.
1 parent 2b6c26e commit f516388

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Lib/test/test_urlparse.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,14 @@ def test_telurl_params(self):
847847
self.assertEqual(p1.path, '863-1234')
848848
self.assertEqual(p1.params, 'phone-context=+1-914-555')
849849

850+
def test_unwrap(self):
851+
url = urllib.parse.unwrap('<URL:type://host/path>')
852+
self.assertEqual(url, 'type://host/path')
853+
854+
def test_Quoter_repr(self):
855+
quoter = urllib.parse.Quoter(urllib.parse._ALWAYS_SAFE)
856+
self.assertIn('Quoter', repr(quoter))
857+
850858

851859
def test_main():
852860
support.run_unittest(UrlParseTestCase)

0 commit comments

Comments
 (0)