> so you can easily run your tests in production
I would be wary about running unit tests on my production box. More specifically unit tests that muck with the database. Sure you might have it setup to point to a test database, but is it really worth it to run the tests there on the off-change that the config gets screwed up and your unittests mess up your production data?
> Also, because the tests and the code are part of
> the same top-level Python project, you don't have
> to mess around with setting Python's import path
> to get the tests running
Within the source directory, there is no need to set $PYTHONPATH. You can just run:
python setup.py test
You just have to point setup.py at your test packages. Note that this is only for the default unittest tests. I don't have experience with pytest or nose.