void () { final PyFile file1 = getTestFile("inheritorsWhenSuperClassImportedWithAs/a.py"); final PyFile file2 = getTestFile("inheritorsWhenSuperClassImportedWithAs/b.py"); final PyClass pyClass = file2.findTopLevelClass("D"); assertNotNull(pyClass); final Map<QualifiedName, QualifiedName> superClasses = pyClass.getStub().getSuperClasses(); assertEquals(1, superClasses.size()); assertEquals(QualifiedName.fromComponents("C"), superClasses.get(QualifiedName.fromComponents("C2"))); assertNotParsed(file1); assertNotParsed(file2); }