diff --git a/test/test_assertion_error.py b/test/test_assertion_error.py index 30fb9369c2117c5d41487c7a8971e6c09ef4fed0..8005c48004c2caada6d69e50dbcc1ce5d6473f48 100644 --- a/test/test_assertion_error.py +++ b/test/test_assertion_error.py @@ -146,3 +146,14 @@ def test_error_intersection_red_yellow(platform_multiC): make_error_file(3, red_windows=intersecting_windows[j % 2], yellow_windows=intersecting_windows[j // 2],probas=probas) error_user(f"dm_user_multi_behavior_intersecting_red_yellow_{i}_{j}", platform_multiC, "at least one common element in their interval") + +def test_deprecated_option(platform_multiC): + invalid_probas = [ [("yellow_prob_reconfig", 1.0)], [("yellow_prob_degrad", 1.0)], [("yellow_prob_rigid", 1.0)], + [("red_prob_reconfig", 1.0)], [("red_prob_degrad", 1.0)], [("red_prob_rigid", 1.0)],[("red_prob_see_you_later",1.0)], + [("red_prob_renonce",1.0)]] + i = 0 + for probas in invalid_probas: + make_error_file(3, yellow_windows=[[0, 1]], probas=probas) + out_dir = error_user("dm_user_multi_behavior_deprecated_yellow_prob_" + str(i), platform_multiC, "deprecated option") + i += 1 + return \ No newline at end of file