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
advanced | search help

Reference
ActivePython 2.4
Python Documentation
Library Reference
5. Miscellaneous Services
5.1 pydoc -- Documentation generator and online help system
5.2 doctest -- Test interactive Python examples
5.3 unittest -- Unit testing framework
5.4 test -- Regression tests package for Python
5.4.1 Writing Unit Tests for the test package
5.4.2 Running tests using test.regrtest
5.5 test.test support -- Utility functions for tests
5.6 decimal -- Decimal floating point arithmetic
5.7 math -- Mathematical functions
5.8 cmath -- Mathematical functions for complex numbers
5.9 random -- Generate pseudo-random numbers
5.10 whrandom -- Pseudo-random number generator
5.11 bisect -- Array bisection algorithm
5.12 collections -- High-performance container datatypes
5.13 heapq -- Heap queue algorithm
5.14 array -- Efficient arrays of numeric values
5.15 sets -- Unordered collections of unique elements
5.16 itertools -- Functions creating iterators for efficient looping
5.17 ConfigParser -- Configuration file parser
5.18 fileinput -- Iterate over lines from multiple input streams
5.19 calendar -- General calendar-related functions
5.20 cmd -- Support for line-oriented command interpreters
5.21 shlex -- Simple lexical analysis

MyASPN >> Reference >> ActivePython 2.4 >> Python Documentation >> Library Reference >> 5. Miscellaneous Services
ActivePython 2.4 documentation

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