You're basically making your own test runner in the unittest.TestCase in the unittest test runner... 

The quasi-metaprogramming here and below obscures some important output.