void () { getTestFile(); GlobalSearchScope scope = GlobalSearchScope.allScope(myFixture.getProject()); Collection<PyTargetExpression> result = PyVariableNameIndex.find("xyzzy", myFixture.getProject(), scope); assertEquals(1, result.size()); assertEquals(0, PyVariableNameIndex.find("shazam", myFixture.getProject(), scope).size()); assertEquals(0, PyVariableNameIndex.find("boohoo", myFixture.getProject(), scope).size()); assertEquals(0, PyVariableNameIndex.find("__all__", myFixture.getProject(), scope).size()); }