Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f516388d
Commit
f516388d
authored
Mar 21, 2013
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#17472: add tests for a couple of untested methods in urllib.urlparse.
Original patch by Daniel Wozniak.
parent
2b6c26eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
Lib/test/test_urlparse.py
Lib/test/test_urlparse.py
+8
-0
No files found.
Lib/test/test_urlparse.py
View file @
f516388d
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment