void () { runPythonTest(new PyExecutionFixtureTestTask(null) { @NotNull @Override protected String getTestDataPath() { return super.getTestDataPath() + "/resolveTest"; } @Override public void runTestOn(@NotNull final String sdkHome, @Nullable Sdk existingSdk) throws Exception { createTempSdk(sdkHome, SdkCreationType.SDK_PACKAGES_ONLY); ApplicationManager.getApplication().invokeAndWait(() -> { myFixture.copyDirectoryToProject("", ""); myFixture.configureByFile("test.py"); myFixture.completeBasic(); Assert.assertEquals("Completion failed. Failed to resolve unittest? Case-sensitive resolve failed?", """ from unittest import TestCase TestCase().assertIsNotNone()""", myFixture.getFile().getText()); }); } }); }