List<PsiElement> () { myFixture.configureByFile("testRelativeImport/src/tests/test_no_relative.py"); final PyFunction noRelativeImportFun = myFixture.findElementByText("test_no_relative", PyFunction.class); assert noRelativeImportFun != null; myFixture.configureByFile("testRelativeImport/src/tests/test_relative.py"); final PyFunction relativeImportFun = myFixture.findElementByText("test_relative", PyFunction.class); assert relativeImportFun != null; return Arrays.asList(relativeImportFun, noRelativeImportFun); }