1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
pip/tests/test_install_requirement.py
Paul Nasrat 7ede43ac26 Make pep8 clean again.
Incorrect blank lines E302 and E303.
2012-05-13 20:13:50 -07:00

11 lines
323 B
Python

from pip.req import InstallRequirement
def test_url_with_query():
"""InstallRequirement should strip the fragment, but not the query."""
url = 'http://foo.com/?p=bar.git;a=snapshot;h=v0.1;sf=tgz'
fragment = '#egg=bar'
req = InstallRequirement.from_line(url + fragment)
assert req.url == url, req.url