Auto Test Discovery Using Unittest

you might be able to use dis together with globals() to gather your module names, I’m not sure where it would take you but its definately a place to start.

I used it here: