ds store, better tests

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2018-02-28 06:41:35 -05:00
parent 37a4e27f21
commit 65f627148c
2 changed files with 7 additions and 6 deletions
+1
View File
@@ -2,6 +2,7 @@
__pycache__/
*.py[cod]
*$py.class
*.DS_Store
# C extensions
*.so
+6 -6
View File
@@ -69,12 +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
def test_anchor_links():
r = get()
r.html.skip_anchors = False
assert '#site-map' in r.html.links
if __name__ == '__main__':
test_html_loading()
test_anchor_links()