void () { runPythonTest(new PyDebuggerTask("/debug", "test_string_representation_in_variables_view.py") { @Override public void before() { toggleBreakpoint(getFilePath(getScriptName()), 17); } @Override public void testing() throws Exception { waitForPause(); List<PyDebugValue> frameVariables = loadFrame(); checkVariableValue(frameVariables, "str", "foo_str"); checkVariableValue(frameVariables, "repr", "foo_repr"); String expected = eval("repr(foo_reprlib)").getValue().replaceAll("[\"']", ""); checkVariableValue(frameVariables, expected, "foo_reprlib"); resume(); waitForTerminate(); } private void checkVariableValue(List<PyDebugValue> frameVariables, String expected, String name) throws PyDebuggerException { PyDebugValue value = findDebugValueByName(frameVariables, name); loadVariable(value); assertEquals(expected, value.getValue()); } }); }