ArchiveBox/tests/test_util.py

5 lines
185 B
Python
Raw Normal View History

2020-07-03 13:54:21 -04:00
from archivebox import util
def test_download_url_downloads_content():
text = util.download_url("http://127.0.0.1:8080/static/example.com.html")
2020-07-03 13:54:21 -04:00
assert "Example Domain" in text