(json_facade, json_hit)
| 2924 | |
| 2925 | |
| 2926 | def _check_list(json_facade, json_hit): |
| 2927 | variable = json_facade.get_local_var(json_hit.frame_id, "variable_for_test_1") |
| 2928 | assert variable.value == "['a', 'b', self.var1: 11]" |
| 2929 | |
| 2930 | var0 = json_facade.get_var(variable.variablesReference, "0") |
| 2931 | |
| 2932 | json_facade.write_set_variable(variable.variablesReference, var0.name, "1") |
| 2933 | |
| 2934 | # Check that it was actually changed. |
| 2935 | variable = json_facade.get_local_var(json_hit.frame_id, "variable_for_test_1") |
| 2936 | assert variable.value == "[1, 'b', self.var1: 11]" |
| 2937 | |
| 2938 | var1 = json_facade.get_var(variable.variablesReference, "var1") |
| 2939 | |
| 2940 | json_facade.write_set_variable(variable.variablesReference, var1.name, "2") |
| 2941 | |
| 2942 | variable = json_facade.get_local_var(json_hit.frame_id, "variable_for_test_1") |
| 2943 | assert variable.value == "[1, 'b', self.var1: 2]" |
| 2944 | |
| 2945 | |
| 2946 | def _check_tuple(json_facade, json_hit): |
nothing calls this directly
no test coverage detected