### Navigation

- index
- modules |
- next |
- previous |
- Python v2.6.4 documentation »
- The Python Standard Library »

# 26. Development Tools

The modules described in this chapter help you write software. For example, the `pydoc` module takes a module and generates documentation based on the module’s contents. The `doctest` and `unittest` modules contains frameworks for writing unit tests that automatically exercise code and verify that the expected output is produced. 2to3 can translate Python 2.x source code into valid Python 3.x code.

The list of modules described in this chapter is:

- 26.1. `pydoc` — Documentation generator and online help system
- 26.2. `doctest` — Test interactive Python examples
  - 26.2.1. Simple Usage: Checking Examples in Docstrings
  - 26.2.2. Simple Usage: Checking Examples in a Text File
  - 26.2.3. How It Works
    - 26.2.3.1. Which Docstrings Are Examined?
    - 26.2.3.2. How are Docstring Examples Recognized?
    - 26.2.3.3. What’s the Execution Context?
    - 26.2.3.4. What About Exceptions?
    - 26.2.3.5. Option Flags and Directives
    - 26.2.3.6. Warnings
  - 26.2.4. Basic API
  - 26.2.5. Unittest API
  - 26.2.6. Advanced API
    - 26.2.6.1. DocTest Objects
    - 26.2.6.2. Example Objects
    - 26.2.6.3. DocTestFinder objects
    - 26.2.6.4. DocTestParser objects
    - 26.2.6.5. DocTestRunner objects
    - 26.2.6.6. OutputChecker objects
  - 26.2.7. Debugging
  - 26.2.8. Soapbox
- 26.3. `unittest` — Unit testing framework
  - 26.3.1. Basic example
  - 26.3.2. Organizing test code
  - 26.3.3. Re-using old test code
  - 26.3.4. Classes and functions
  - 26.3.5. TestCase Objects
  - 26.3.6. TestSuite Objects
  - 26.3.7. TestResult Objects
  - 26.3.8. TestLoader Objects
- 26.4. 2to3 - Automated Python 2 to 3 code translation
  - 26.4.1. Using 2to3
  - 26.4.2. Fixers
  - 26.4.3. `lib2to3` - 2to3’s library
- 26.5. `test` — Regression tests package for Python
  - 26.5.1. Writing Unit Tests for the `test` package
  - 26.5.2. Running tests using `test.regrtest`
- 26.6. `test.test_support` — Utility functions for tests

### Navigation

- index
- modules |
- next |
- previous |
- Python v2.6.4 documentation »
- The Python Standard Library »