from archivebox import util

def test_download_url_downloads_content():
    text = util.download_url("https://example.com")
    assert "Example Domain" in text
from archivebox import util

def test_download_url_downloads_content():
    text = util.download_url("http://localhost:8080/static/example.com.html")
    assert "Example Domain" in text
Refactor util tests to use local webserver
test: Refactor util tests to use local webserver

  from archivebox import util
  
  def test_download_url_downloads_content():
-     text = util.download_url("https://example.com")
+     text = util.download_url("http://localhost:8080/static/example.com.html")
      assert "Example Domain" in text
Refactor util tests to use local webserver
## Code Before:
from archivebox import util

def test_download_url_downloads_content():
    text = util.download_url("https://example.com")
    assert "Example Domain" in text
## Instruction:
Refactor util tests to use local webserver
## Code After:
from archivebox import util

def test_download_url_downloads_content():
    text = util.download_url("http://localhost:8080/static/example.com.html")
    assert "Example Domain" in text