This page contains notes about Pootle's unit tests and how they should be used, interpreted and expanded. You might also want to check testing guidelines.
Pootle 2's unit tests use the Django testing framekwork, and can be executed with
./manage.py test pootle_app
Although you can run test for all applications, several of the external applications are not passing their tests which renders this less useful.
These can be run with py.test if you have the correct plugin for py.test installed. More information