void (@NotNull final PyTestTestProcessRunner runner, @NotNull final String stdout, @NotNull final String stderr, @NotNull final String all, final int exitCode) { var assertionFailedMessage = TestStateInfo.Magnitude.FAILED_INDEX.getTitle(); var errorMessage = "raise Exception"; var tests = new AbstractTestProxy[]{runner.getTestProxy(), runner.findTestByName("TestTest"), runner.findTestByName("test_test")}; for (var testText : ContainerUtil.map(tests, o -> fillPrinter(o).getAllOut())) { assertThat("Redundant error message", testText, not(containsString(assertionFailedMessage))); assertThat("No required error message", testText, containsString(errorMessage)); assertEquals("Wrong number of real error messages", 2, testText.split(errorMessage).length); } }