void () { final PsiElement result = doResolve(); assertInstanceOf(result, PyTargetExpression.class); final PyTargetExpression target = (PyTargetExpression)result; assertEquals("foo", target.getName()); final PsiFile containingFile = target.getContainingFile(); assertInstanceOf(containingFile, PyiFile.class); }