void () { runPythonTest(new PyDebuggerTask("/debug", "test1.py") { @Override public void before() { toggleBreakpoint(getScriptName(), 2); } @Override public void testing() throws Exception { waitForPause(); eval("i").hasValue("0"); // remove break on line 2 removeBreakpoint(getScriptName(), 2); resume(); // add break on line 2 toggleBreakpoint(getScriptName(), 2); // check if break on line 2 works waitForPause(); // remove break on line 2 again removeBreakpoint(getScriptName(), 2); // add break on line 3 toggleBreakpoint(getScriptName(), 3); resume(); // check if break on line 3 works waitForPause(); resume(); } }); }