unittest2

How can you get unittest2 and coverage.py working together?

In theory something like coverage run unit2 discover Should work but it currently just errors out. If you are a nose user which will be the equivalent of nosetests --with-coverage ...

Is it possible to run doctests using unit2

I recently switched from nose to the new unittest2 package for my python unit testing needs. It does everything I want, except from the fact that I can't get its "discover" command to recognize the doctests in my code - I still have to use nose to run them. Is this not implemented or is there something I'm missing here? ...

How to unittest a BaseHTTPRequestHandler subclass?

Since python normally takes care of instantiating these objects I'm not entirely sure how get a standalone instance of this so I can test the do_GET, do_POST, etc. methods. Any suggestions are welcome. ...