def METHOD_NAME():
    """Test height settings."""
    one = Fraction(1)
    class TestWidget(Widget):
        def get_content_width(self, container: Size, parent: Size) -> int:
            return 10
        def get_content_height(self, container: Size, parent: Size, width: int) -> int:
            return 10
    widget = TestWidget()
    styles = widget.styles
    box_model = widget._get_box_model(Size(60, 20), Size(80, 24), one, one)
    assert box_model == BoxModel(Fraction(60), Fraction(20), Spacing(0, 0, 0, 0))
    # Add a margin and check that it is reported
    styles.margin = (1, 2, 3, 4)
    box_model = widget._get_box_model(Size(60, 20), Size(80, 24), one, one)
    assert box_model == BoxModel(Fraction(54), Fraction(16), Spacing(1, 2, 3, 4))
    # Set height to 100 vw which should make it the height of the parent
    styles.height = "100vh"
    box_model = widget._get_box_model(Size(60, 20), Size(80, 24), one, one)
    assert box_model == BoxModel(Fraction(54), Fraction(24), Spacing(1, 2, 3, 4))
    # Set the height to 100% should make it fill the container size
    styles.height = "100%"
    box_model = widget._get_box_model(Size(60, 20), Size(80, 24), one, one)
    assert box_model == BoxModel(Fraction(54), Fraction(16), Spacing(1, 2, 3, 4))
    styles.height = "auto"
    styles.margin = 2
    box_model = widget._get_box_model(Size(60, 20), Size(80, 24), one, one)
    print(box_model)
    assert box_model == BoxModel(Fraction(56), Fraction(10), Spacing(2, 2, 2, 2))
    styles.margin = 1, 2, 3, 4
    styles.height = "100vh"
    styles.max_height = "50%"
    box_model = widget._get_box_model(Size(60, 20), Size(80, 24), one, one)
    assert box_model == BoxModel(Fraction(54), Fraction(10), Spacing(1, 2, 3, 4))