test_response_curve_rule_data
Tests for the ResponseCurveRuleData
test_response_curve_rule_data_creation_logic()
The ResponseCurveRuleData should parse the provided dictionary to correctly initialize itself during creation
Source code in tests/data/entities/test_response_curve_rule_data.py
def test_response_curve_rule_data_creation_logic():
"""The ResponseCurveRuleData should parse the provided dictionary
to correctly initialize itself during creation"""
# Act
data = ResponseCurveRuleData("test_name", "input", [1, 2, 3], [3, 2, 0])
data.output_variable = "output"
data.description = "description"
assert isinstance(data, IRuleData)
assert data.name == "test_name"
assert data.input_variable == "input"
assert data.input_values == [1, 2, 3]
assert data.output_values == [3, 2, 0]
assert data.description == "description"
assert data.output_variable == "output"