예제 #1
0
def test_has_cross_sub_frames_two_level_empty():
    dom = {
        "frames": [{"frames": [{"frames": [], "crossFrames": []}], "crossFrames": []}],
        "crossFrames": [],
    }

    assert has_cross_subframes(dom) is False
def test_has_cross_sub_frames_two_level():
    dom = {"frames": [{"frames": [], "crossFrames": [{}]}], "crossFrames": []}

    assert has_cross_subframes(dom) is True