def test_sizing_parameter_equality(): """Test the equality of SizingParameter objects.""" sizing = SizingParameter() sizing_dup = sizing.duplicate() sizing_alt = SizingParameter(1) assert sizing is sizing assert sizing is not sizing_dup assert sizing == sizing_dup sizing_dup.cooling_factor = 1 assert sizing != sizing_dup assert sizing != sizing_alt
def test_sizing_parameter_equality(): """Test the equality of SizingParameter objects.""" sizing = SizingParameter() relative_path = './tests/ddy/chicago_monthly.ddy' sizing.add_from_ddy(relative_path) sizing_dup = sizing.duplicate() sizing_alt = SizingParameter(None, 1) assert sizing is sizing assert sizing is not sizing_dup assert sizing == sizing_dup sizing_dup.cooling_factor = 1 assert sizing != sizing_dup assert sizing != sizing_alt