MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / getUrl

Function getUrl

src/Test/TestWeb.py:28–31  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

26
27
28def getUrl(url):
29 content = urllib.request.urlopen(url).read()
30 assert "server error" not in content.lower(), "Got a server error! " + repr(url)
31 return content
32
33@pytest.mark.usefixtures("resetSettings")
34@pytest.mark.webtest

Callers 1

testFileSecurityMethod · 0.85

Calls 1

readMethod · 0.45

Tested by

no test coverage detected