void () { myFixture.configureByFile("resolve/" + getTestName(false) + ".py"); final PyClass pyClass = PsiTreeUtil.findChildOfType(myFixture.getFile(), PyClass.class); assertNotNull(pyClass); final PyFunction init = pyClass.findInitOrNew(false, TypeEvalContext.userInitiated(myFixture.getProject(), myFixture.getFile())); assertEquals(PyNames.INIT, init.getName()); }