MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / testRaw

Method testRaw

src/Test/TestWeb.py:100–105  ·  view source on GitHub ↗
(self, browser, site_url)

Source from the content-addressed store, hash-verified

98 browser.switch_to.default_content()
99
100 def testRaw(self, browser, site_url):
101 browser.get("%s/raw/1EU1tbG9oC1A8jz2ouVwGZyQ5asrNsE4Vr/test/security.html" % site_url)
102 WebDriverWait(browser, 10).until(title_is("Security tests"))
103 assert getContextUrl(browser) == "%s/raw/1EU1tbG9oC1A8jz2ouVwGZyQ5asrNsE4Vr/test/security.html" % site_url
104
105 assert browser.find_element_by_id("script_output").text == "Result: Fail"

Callers

nothing calls this directly

Calls 2

getContextUrlFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected