tests for newly added known_urls feature

This commit is contained in:
Akash Mahanty
2020-10-03 09:33:50 +05:30
parent 82c65454e6
commit 6b3b2e2a7d
2 changed files with 15 additions and 1 deletions

View File

@@ -188,3 +188,11 @@ def test_total_archives():
" https://gaha.e4i3n.m5iai3kip6ied.cima/gahh2718gs/ahkst63t7gad8 ", user_agent
)
assert target.total_archives() == 0
def test_known_urls():
target = waybackpy.Url("akamhy.github.io", user_agent)
assert len(target.known_urls(alive=True, subdomain=True)) > 2
target = waybackpy.Url("akamhy.github.io", user_agent)
assert len(target.known_urls()) > 3