void (@NotNull List<String> sourceRoots) { myFixture.copyDirectoryToProject(getTestName(true), ""); final Module module = myFixture.getModule(); for (String root : sourceRoots) { PsiTestUtil.addSourceRoot(module, myFixture.findFileInTempDir(root)); } try { myFixture.configureByFile("a.py"); myFixture.completeBasic(); myFixture.checkResultByFile(getTestName(true) + "/a.after.py"); } finally { for (String root : sourceRoots) { PsiTestUtil.removeSourceRoot(module, myFixture.findFileInTempDir(root)); } } }