Prev         Up         Next

Tests

The processing package contains a test sub-package which contains the following test modules:

test_processing.py
Test of the features of processing which contains lots of examples.
test_speed.py
Some simple benchmarks.
test_newtype.py
Demonstration of how to create and use customized managers and proxies.
test_doc.py
A test of proxy objects for lists using doctest.

On Python 2.5 or later the sub-package also contains

test_with.py
The same as test_processing but uses the new with statement introduced in Python 2.5.

You can run test_processing, test_newtype, test_speed and test_doc [1] by doing:

python -m processing.test

on Python 2.5 or

python -c "from processing.test import main; main()"

on earlier versions.

[1]The first three test modules will be run twice: once using processes and once with threads (by using the processing.dummy subpackage).