void (String newName, String entryFileName) { final String testName = getTestName(true); final VirtualFile dir1 = myFixture.copyDirectoryToProject(RENAME_DATA_PATH + testName + "/before", ""); PsiDocumentManager.getInstance(myFixture.getProject()).commitAllDocuments(); myFixture.configureFromTempProjectFile(entryFileName); myFixture.renameElementAtCaret(newName); VirtualFile dir2 = PyTestCase.getVirtualFileByName(PythonTestUtil.getTestDataPath() + "/" + RENAME_DATA_PATH + testName + "/after"); try { PlatformTestUtil.assertDirectoriesEqual(dir2, dir1); } catch (IOException e) { throw new RuntimeException(e); } }