void () { myFixture.configureByFile("deprecation/functionStub.py"); PyFile file = (PyFile)myFixture.getFile(); assertEquals("commands.getstatus() is deprecated", file.findTopLevelFunction("getstatus").getDeprecationMessage()); GCWatcher.tracking(file.findTopLevelFunction("getstatus"), ((PsiFileImpl)file).getTreeElement()).ensureCollected(); assertNotParsed(file); assertEquals("commands.getstatus() is deprecated", file.findTopLevelFunction("getstatus").getDeprecationMessage()); assertNotParsed(file); }