void () { final PyFile file = getTestFile(); final PyClass pyClass = file.findTopLevelClass("MyClass"); final TypeEvalContext context = TypeEvalContext.codeAnalysis(file.getProject(), file); assertNotNull(pyClass.findClassAttribute("foo", false, context)); assertNotParsed(file); //noinspection ResultOfMethodCallIgnored pyClass.getText(); assertNotNull(pyClass.findClassAttribute("foo", false, context)); }