Prev         Up         Next

Tests

The processing package contains a test sub-package which contains three test modules:

test_processing.py
Test of the features of processing which contains lots of examples.
test_with.py
The same as test_processing but uses the new with statement introduced in Python 2.5.
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.

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

python -m processing.test

on Python 2.5 or

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

on earlier versions.

[1](1, 2) Both test_processing, test_newproxytype will be run twice: once with processes, and a second time with threads (by using the processing.dummy sub-package in place of processing).