void () { runPythonTest( new PyUnitTestProcessWithConsoleTestTask("/testRunner/env/unit", PyUnitTestProcessRunner.TEST_PATTERN_PREFIX + "*pattern.py") { @Override protected void checkTestResults(@NotNull final PyUnitTestProcessRunner runner, @NotNull final String stdout, @NotNull final String stderr, @NotNull final String all, int exitCode) { assertEquals(runner.getFormattedTestTree(), 4, runner.getAllTestsCount()); assertEquals(runner.getFormattedTestTree(), 2, runner.getPassedTestsCount()); assertEquals(runner.getFormattedTestTree(), 2, runner.getFailedTestsCount()); } }); }