资 源 简 介
Trestle is a nose plugin that enables you to write testable documentation for
web apps (or shell commands, but more on that later).
To use trestle, write a reStructured Text document using a
set of special directives to indicate the fixtures to be used for testing
(including the http or mock http client), each request to be sent via the
client, and the expected response from the application under test.
A simple trestle test document might look like this::
```
Frog: A web service for doing things with frogs
-----------------------------------------------
.. fixtures :: frog_fixtures
Frog is a web service for doing things with frogs.
You can list the available frogs.
.. request :: List available frogs
GET /frogs
..
The response is in a plain-text format.
.. response ::
bullfrog
poison dart
treefrog
...<