PyTestCreationModel () { myFixture.configureByFile("/create_tests/create_tst.py"); final VirtualFile[] roots = ModuleRootManager.getInstance(myFixture.getModule()).getSourceRoots(); assert roots.length > 0 : "Empty roots for module " + myFixture.getModule(); final VirtualFile root = roots[0]; return new PyTestCreationModel("tests.py", root.getCanonicalPath(), "Spam", Arrays.asList("eggs", "eggs_and_ham")); }