The "test" subpackage contains scripts that test various parts of Pyrite, using the standard Python test framework. Running the tests: First, make sure you have the Python test framework on your system. If you installed Python from source, you probably have it (since it is part of the standard Python library). Some binary distributions of Python don't include the tests in the base package; on Debian GNU/Linux systems, for example, you'll need to install the "python-regrtest" package. The driver script for the tests is "regrtest.py". Run it from the command line, and it will execute all of the test scripts and tell you which ones pass or fail. "regrtest.py" can take command line arguments; the most interesting ones are: -v - Verbose output. Without this, the only output from most tests will be the pass/fail indication printed by the driver. -x - Skip one or more tests, named on the command line. Unless -x is given, you can name tests on the command line and the driver will run only those tests. Writing a test script: Test scripts must be named "test_<name>.py" and placed in the "test" package. A test is considered to have passed if it exits without raising an exception, and failed if it raises an exception. The test.test_support module includes some useful objects; see the existing test scripts for details. (One item in test.test_support that is relevant to almost every test script is "verbose", which is true if the "-v" flag was passed to the driver script.)