void () { myFixture.copyDirectoryToProject(getTestName(true), ""); PyClass exportedClass = PyClassNameIndex.findClass("pkg.mod.Exported", myFixture.getProject()); QualifiedName exportedCanonicalImportPath = QualifiedNameFinder.findCanonicalImportPath(exportedClass, null); assertEquals(QualifiedName.fromDottedString("pkg"), exportedCanonicalImportPath); PyClass internalClass = PyClassNameIndex.findClass("pkg.mod.Internal", myFixture.getProject()); QualifiedName internalCanonicalImportPath = QualifiedNameFinder.findCanonicalImportPath(internalClass, null); assertEquals(QualifiedName.fromDottedString("pkg.mod"), internalCanonicalImportPath); }