.. include:: header.txt

Tests
=====

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

     `test_processing.py <../test/test_processing.py>`_
         Test of the features of `processing` which contains 
         lots of examples.

     `test_speed.py <../test/test_speed.py>`_
         Some simple benchmarks.

     `test_newtype.py <../test/test_newtype.py>`_
         Demonstration of how to create and use customized managers
         and proxies.
      
     `test_doc.py <../test/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 <../test/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).

.. _Prev: programming-guidelines.html
.. _Up: index.html
.. _Next: tests.html

