diff --git a/tests/test_requests_html.py b/tests/test_requests_html.py index 123444e..d70f03d 100644 --- a/tests/test_requests_html.py +++ b/tests/test_requests_html.py @@ -69,6 +69,13 @@ def test_html_loading(): assert isinstance(html.html, str) +def test_links(): + assert not("#test".startswith('#') and True) is True + 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() -