def test_determine_json_type(source_html): json_dict = json_from_html(source_html) json_type = determine_json_type(json_dict) assert json_type == "ProfilePage"
def test_json_from_html(source_html): json_dict = json_from_html(source_html) assert type(json_dict) == dict assert "entry_data" in json_dict