mardi 4 septembre 2018

How to test for order of superclass in python?

Giving following code:

class X(Mixin, Y):
    pass

How can I write a unittest to ensure Mixin class is before Y in superclass declaration of X?

Aucun commentaire:

Enregistrer un commentaire