void () { runPythonTest(new PyUnitTestProcessWithConsoleTestTask("testRunner/env/unit/subtestError", "test_test.py") { @NotNull @Override protected PyUnitTestProcessRunner createProcessRunner() { return new PyUnitTestProcessRunner(toFullPath(getMyScriptName()), 1); } @Override protected void checkTestResults(@NotNull final PyUnitTestProcessRunner runner, @NotNull final String stdout, @NotNull final String stderr, @NotNull final String all, int exitCode) { final String formattedTestTree = runner.getFormattedTestTree(); assertEquals("Bad tree:" + formattedTestTree, """ Test tree: [root](-) .test_test(-) ..TestThis(-) ...test_this(-) ....[test](-) """, formattedTestTree); } }); }