"""`Panel.ignore_lateral_prestress` drops the in-plane prestress term from the corner stresses -- the plant's reference-tool convention -- and is off by default.""" from panellift.model import Panel def test_default_is_off(): assert Panel(mark='X', length_ft=20.0, width_ft=10.0, thickness_in=8.0).ignore_lateral_prestress is False def test_flag_is_a_plain_field(): p = Panel(mark='X', length_ft=20.0, width_ft=10.0, thickness_in=8.0, ignore_lateral_prestress=True) assert p.ignore_lateral_prestress is True