void () { myFixture.copyDirectoryToProject(getTestName(true), ""); runWithSourceRoots(Collections.singletonList(myFixture.findFileInTempDir("src")), () -> { myFixture.configureByFile("src/" + getTestName(false) + ".py"); final PyPsiFacade facade = PyPsiFacade.getInstance(myFixture.getProject()); assertNotNull(facade.createClassByQName("foo.bar.MyClass", myFixture.getFile())); }); }