def test_stripRawHTML(html_mock): addr = "https://en.wikipedia.org/wiki/Ethics" aPage = loadPageHTML([addr]) someHTML = aPage[addr] strippedHTML = stripRawHTML(someHTML) assert "<head>" not in strippedHTML and "</head>" not in strippedHTML assert "AIMA book" in someHTML and "AIMA book" in strippedHTML