Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
39374cb5
Commit
39374cb5
authored
Jul 20, 2016
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test capturing expectation of PYPI_MD5 pattern
parent
1a702793
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
setuptools/tests/test_packageindex.py
setuptools/tests/test_packageindex.py
+10
-0
No files found.
setuptools/tests/test_packageindex.py
View file @
39374cb5
...
@@ -15,6 +15,16 @@ from setuptools.tests.server import IndexServer
...
@@ -15,6 +15,16 @@ from setuptools.tests.server import IndexServer
class
TestPackageIndex
:
class
TestPackageIndex
:
def
test_regex
(
self
):
hash_url
=
'http://other_url?:action=show_md5&'
hash_url
+=
'digest=0123456789abcdef0123456789abcdef'
doc
=
"""
<a href="http://some_url">Name</a>
(<a title="MD5 hash"
href="{hash_url}">md5</a>)
"""
.
lstrip
().
format
(
**
locals
())
assert
setuptools
.
package_index
.
PYPI_MD5
.
match
(
doc
)
def
test_bad_url_bad_port
(
self
):
def
test_bad_url_bad_port
(
self
):
index
=
setuptools
.
package_index
.
PackageIndex
()
index
=
setuptools
.
package_index
.
PackageIndex
()
url
=
'http://127.0.0.1:0/nonesuch/test_package_index'
url
=
'http://127.0.0.1:0/nonesuch/test_package_index'
...
...
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