void (@NotNull final PyTestCreationModel model, @NotNull final String fileName) { WriteCommandAction.runWriteCommandAction(myFixture.getProject(), () -> { final PsiFile file = PyTestCreator.generateTest(myFixture.getFile(), model).getContainingFile(); myFixture.configureByText(file.getFileType(), file.getText()); myFixture.checkResultByFile("/create_tests/" + fileName); }); }