void () { runPythonTest(new PyDebuggerTask("/debug", "test2") { @Override public void before() { toggleBreakpoint(getFilePath("test2.py"), 6); setScriptName("test2"); setWaitForTermination(false); getRunConfiguration().setShowCommandLineAfterwards(true); getRunConfiguration().setModuleMode(true); } @Override public void testing() throws Exception { waitForPause(); eval("z").hasValue("1"); resume(); consoleExec("foo(3)"); waitForOutput("5"); } @Override public void doFinally() { getRunConfiguration().setShowCommandLineAfterwards(false); getRunConfiguration().setModuleMode(false); } }); }