Package twisted :: Package trial :: Module unittest

[show private | hide private]
[frames | no frames]

## Module twisted.trial.unittest

Twisted Test Framework

.todo attributes can either be set on the TestCase or on an individual test* method, and indicate that the test is expected to fail. New tests (for which the underlying functionality has not yet been added) should set this flag while the code is being written. Once the feature is added and the test starts to pass, the flag should be removed.

Tests of highly-unstable in-development code should consider using .skip to turn off the tests until the code has reached a point where the success rate is expected to be monotonically increasing.

Classes
`TestCase` |
`Tester` | I contain all the supporting machinery for running a single test method.
`TestSuite` |

Exceptions
`FailTest` | Raised to indicate the current test has failed to pass.
`SkipTest` | Raise this (with a reason) to skip the current test.

Variable Summary
`int` | `ASSERTION_IS_ERROR`
`int` | `False`
`_Feature` | `nested_scopes`
`tuple` | `StringTypes`
`int` | `True`

Variable Details

### ASSERTION_IS_ERROR

  Type:
    `int`
  Value:

        0

### False

  Type:
    `int`
  Value:

        0

### nested_scopes

  Type:
    `_Feature`
  Value:

        _Feature((2, 1, 0, 'beta', 1), (2, 2, 0, 'alpha', 0), 16)

### StringTypes

  Type:
    `tuple`
  Value:

        (<type 'str'>, <type 'unicode'>)

### True

  Type:
    `int`
  Value:

        1

Generated by Epydoc 1.1 on Thu May 8 13:16:56 2003 | http://epydoc.sf.net