(json_facade, json_hit)
| 2960 | |
| 2961 | |
| 2962 | def _check_dict_subclass(json_facade, json_hit): |
| 2963 | variable = json_facade.get_local_var(json_hit.frame_id, "variable_for_test_3") |
| 2964 | assert variable.value == "{in_dct: 20; self.var1: 10}" |
| 2965 | |
| 2966 | var1 = json_facade.get_var(variable.variablesReference, "var1") |
| 2967 | |
| 2968 | json_facade.write_set_variable(variable.variablesReference, var1.name, "2") |
| 2969 | |
| 2970 | # Check that it was actually changed. |
| 2971 | variable = json_facade.get_local_var(json_hit.frame_id, "variable_for_test_3") |
| 2972 | assert variable.value == "{in_dct: 20; self.var1: 2}" |
| 2973 | |
| 2974 | var_in_dct = json_facade.get_var(variable.variablesReference, "'in_dct'") |
| 2975 | |
| 2976 | json_facade.write_set_variable(variable.variablesReference, var_in_dct.name, "5") |
| 2977 | |
| 2978 | # Check that it was actually changed. |
| 2979 | variable = json_facade.get_local_var(json_hit.frame_id, "variable_for_test_3") |
| 2980 | assert variable.value == "{in_dct: 5; self.var1: 2}" |
| 2981 | |
| 2982 | |
| 2983 | def _check_set(json_facade, json_hit): |
nothing calls this directly
no test coverage detected