void () { PsiElement element = doResolve(); assertTrue(element instanceof PsiFile); assertEquals("myfile.py", ((PsiFile)element).getName()); assertEquals("mypackage", ((PsiFile)element).getContainingDirectory().getName()); }