I would be really tempted to put the testing code in a class that was then called from here - it would also be a better prototype for using the mro.