void () { runPythonTest(new PyProcessWithConsoleTestTask<PyDocTestProcessRunner>("/testRunner/env/doc", SdkCreationType.EMPTY_SDK) { @NotNull @Override protected PyDocTestProcessRunner createProcessRunner() { return new PyDocTestProcessRunner("test_Diff.py::test_dff", 0); } @Override protected void checkTestResults(@NotNull final PyDocTestProcessRunner runner, @NotNull final String stdout, @NotNull final String stderr, @NotNull final String all, int exitCode) { final String text = runner.getConsole().getText(); Assert.assertThat("No diff link", text, Matchers.containsString("<Click to see difference>")); Assert.assertThat("Wrong actual", text, Matchers.containsString("Got")); Assert.assertThat("Wrong actual", text, Matchers.containsString("2")); Assert.assertThat("Wrong expected", text, Matchers.containsString("Expected")); Assert.assertThat("Wrong expected", text, Matchers.containsString("3")); } }); }