def checkMetaOfClass(self):
        class metameta(type):
            pass

        class meta(type):
            __metaclass__ = metameta

        self.assertEquals(determineMetaclass((meta, type)), metameta)
Esempio n. 2
0
    def checkMetaOfClass(self):

        class metameta(type):
            pass

        class meta(type):
            __metaclass__ = metameta

        self.assertEquals(determineMetaclass((meta, type)), metameta)
Esempio n. 3
0
 def _callFUT(self, *args, **kw):
     from zope.interface.advice import determineMetaclass
     return determineMetaclass(*args, **kw)
Esempio n. 4
0
 def _callFUT(self, *args, **kw):
     from zope.interface.advice import determineMetaclass
     return determineMetaclass(*args, **kw)