void () { myTestFileName = ORDINARY_PACK_DIR + "/script.py"; PsiFile currentFile = prepareFile(); PsiTestUtil.addExcludedRoot(myFixture.getModule(), myFixture.findFileInTempDir(ORDINARY_PACK_DIR + "/excluded")); PsiElement element = doResolve(currentFile); assertInstanceOf(element, PyFile.class); assertEquals(myFixture.findFileInTempDir("excluded.py"), ((PyFile)element).getVirtualFile()); }