ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH

Reference
ActivePython 2.5
Python Documentation
Library Reference
23. Development Tools
23.1 pydoc -- Documentation generator and online help system
23.2 doctest -- Test interactive Python examples
23.3 unittest -- Unit testing framework
23.4 test -- Regression tests package for Python
23.4.1 Writing Unit Tests for the test package
23.4.2 Running tests using test.regrtest
23.5 test.test support -- Utility functions for tests

MyASPN >> Reference >> ActivePython 2.5 >> Python Documentation >> Library Reference >> 23. Development Tools
ActivePython 2.5 documentation

23.4 test -- Regression tests package for Python

The test package contains all regression tests for Python as well as the modules test.test_support and test.regrtest. test.test_support is used to enhance your tests while test.regrtest drives the testing suite.

Each module in the test package whose name starts with "test_" is a testing suite for a specific module or feature. All new tests should be written using the unittest module; using unittest is not required but makes the tests more flexible and maintenance of the tests easier. Some older tests are written to use doctest and a ``traditional'' testing style; these styles of tests will not be covered.

See Also:

Module unittest:
Writing PyUnit regression tests.
Module doctest:
Tests embedded in documentation strings.



See About this document... for information on suggesting changes.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved