void (@NotNull String argumentBefore, @NotNull String argumentAfter) { final Module module = myFixture.getModule(); checkSetupArgumentText(module, "install_requires", argumentBefore); checkRequirements(PyPackageUtil.findSetupPyRequires(module), 1); final Runnable appendToRequires = () -> PyPackageUtil.addRequirementToTxtOrSetupPy(module, "Markdown", LanguageLevel.PYTHON34); WriteCommandAction.runWriteCommandAction(myFixture.getProject(), appendToRequires); checkSetupArgumentText(module, "install_requires", argumentAfter); final List<PyRequirement> actual = PyPackageUtil.findSetupPyRequires(module); final List<PyRequirement> expected = PyRequirementParser.fromText("NewDjango==1.3.1\nMarkdown\nnumpy\nmynose"); assertEquals(expected, actual); }