A Better AsyncTestCase for Python

If you need asynchronous support in python unit tests, there are a few possibilities.  A simple google search points you to a few packages, one being tornado.  Tornado's tornado.testing.AsyncTestCase seems straight-forward.  However it does have a shortcoming: it's not thread-safe.  Trying to use it with a thread will result in…