def test_bb_class(): node = parse(classcode)[0] assert node_to_bounding_box(node) == ((1, 1), (7, 0))
def test_bb_split_assignment(): node = parse(splitcode)[0] assert node_to_bounding_box(node) == ((1, 1), (2, 5))
def test_bb_name(): node = parse("var")[0] assert node_to_bounding_box(node) == ((1, 1), (1, 3))
def test_bb_funcdef(): node = parse(bigcode)[0] assert node_to_bounding_box(node) == ((1, 1), (4, 0))
def test_bb_class(): node = parse(classcode)[0] assert node_to_bounding_box(node) == ((1, 1), (6, 21))
def test_bb_funcdef(): node = parse(funcdefcode)[0] assert node_to_bounding_box(node) == ((1, 1), (3, 9))