.. include:: header.txt

Tests
=====

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

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

     `test_with.py <../test/test_with.py>`_
         The same as `test_processing` but uses the new
         `with` statement introduced in Python 2.5.

     `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`.


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] 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`).


.. _Prev: programming-guidelines.html
.. _Up: index.html
.. _Next: ../COPYING.txt

