void (String prefix) { int oldReformat = CodeInsightSettings.getInstance().REFORMAT_ON_PASTE; try { CodeInsightSettings.getInstance().REFORMAT_ON_PASTE = CodeInsightSettings.NO_REFORMAT; String name = getTestName(false); myFixture.configureByFile("copyPaste/" + prefix + name + ".src.py"); myFixture.performEditorAction(IdeActions.ACTION_EDITOR_COPY); myFixture.configureByFile("copyPaste/" + prefix + name + ".dst.py"); myFixture.performEditorAction(IdeActions.ACTION_EDITOR_PASTE); myFixture.checkResultByFile("copyPaste/" + prefix + name + ".after.py", true); } finally { CodeInsightSettings.getInstance().REFORMAT_ON_PASTE = oldReformat; } }