void (@NotNull PyClass cls, @NotNull String name) { final TypeEvalContext context = TypeEvalContext.deepCodeInsight(cls.getProject()); final PyType metaClassType = cls.getType(context).getMetaClassType(context, true); assertInstanceOf(metaClassType, PyClassType.class); assertTrue(((PyClassType)metaClassType).isDefinition()); assertEquals(name, metaClassType.getName()); }