Skip to content

Commit

Permalink
Merge pull request psf#47 from wsqy/fix45
Browse files Browse the repository at this point in the history
fix issue 45
  • Loading branch information
kennethreitz committed Feb 28, 2018
2 parents 9551982 + b78e0e9 commit 37a4e27
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_requests_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ def test_html_loading():
assert isinstance(html.html, str)


def test_links():
assert not("#test".startswith('#') and True) is False
assert not("test".startswith('#') and True) is True
assert not("#test".startswith('#') and False) is True
assert not("test".startswith('#') and False) is True


if __name__ == '__main__':
test_html_loading()

0 comments on commit 37a4e27

Please sign in to comment.