void () { runPythonTest(new PyDebuggerTask("/debug", "test_quoting_value.py") { private void testQuotingValue(String value) throws PyDebuggerException { var variable = myDebugProcess.evaluate(value, false, false).getValue(); for (var policy : QuotingPolicy.values()) { String result = getQuotingString(policy, variable); switch (policy) { case DOUBLE -> assertFalse(result.contains("'")); case SINGLE -> assertFalse(result.contains("\"")); case NONE -> { assertFalse(result.contains("'")); assertFalse(result.contains("\"")); } } } } @Override public void before() { toggleBreakpoint(getFilePath(getScriptName()), 10); } @Override public void testing() throws Exception { waitForPause(); testQuotingValue("car"); testQuotingValue("some_str"); testQuotingValue("some_lst"); testQuotingValue("some_dict"); resume(); } }); }