void () { final String path = "resolve/" + getTestName(false); myFixture.configureByFile(path + "/main.py"); runWithAdditionalClassEntryInSdkRoots( path + "/lib", () -> { final PsiElement element = PyResolveTestCase.findReferenceByMarker(myFixture.getFile()).resolve(); assertInstanceOf(element, PyFunction.class); assertEquals("foo.py", element.getContainingFile().getName()); } ); }