void (@NotNull PyClass cls, String @NotNull ... mro) { final List<PyClassLikeType> types = cls.getAncestorTypes(TypeEvalContext.deepCodeInsight(cls.getProject())); final List<String> classNames = new ArrayList<>(); for (PyClassLikeType type : types) { if (type != null) { final String name = type.getName(); if (name != null) { classNames.add(name); continue; } } classNames.add("unknown"); } assertOrderedEquals(classNames, Arrays.asList(mro)); }