def test_cls(self): for typ in self.iter_all_types(): self._assert_cls_name_equal(typ, typ.cls) if typ.cls is None: continue # check roundtrip from typ->cls->typ cls = typ.cls typ2 = Type.from_cls(cls) self._assert_typ_equal(typ, typ2)
def test_from_cls(self): for binding in (qtcore, qtgui): for cls in binding.iter_classes(): typ = Type.from_cls(cls) self._assert_cls_name_equal(typ, cls)