import pytest from tests.support.inline import inline # 15.1.3 "Let source be the result returned from the outerHTML IDL attribute # of the document element" def test_source_matches_outer_html(session): session.url = inline("CheesePeas") expected_source = session.execute_script( "return document.documentElement.outerHTML") assert session.source == expected_source