A way to convert any Python module to a doctest ready doc string.
Project description
mod2doctest is a module that converts a python module to a doctest compatible docstring.
It’s kind of like taking a python script, pasting it into an interactive interpreter and then copying the output back into a docstring.
With mod2doctest you can set up a test the “quick and dirty” way – just by making a module that tests your code, running it, and then inspecting the output. Then, you can use mod2doctest to take a snapshot of the output and convert it to a permanent test fixture.
Also has many convenience to make this process easier like adding ellipse markers for memory id / trace back and provides several formating features.
For full documentation please visit http://packages.python.org/mod2doctest/.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for mod2doctest-0.1.0.win32-py2.6.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 583b6396b3e6b4f6e5deebe3dd5c86df19fff6a77f6b04fc3c75cc78ff9b9ee0 |
|
MD5 | 9ea7074a176cbbca6fec4e8456e0aa81 |
|
BLAKE2b-256 | 37338c84e26ea2ce1f9b02fb7954ed6f61a092645801ec67adc4849b9818cadf |
Hashes for mod2doctest-0.1.0.win32-py2.5.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c46cc8a9e85b678f8f98c5bd2c3e6c1786e94b1b33323d9407c7af2ccdd0ecc |
|
MD5 | 45dc05ee6b302468a65824a2583225ac |
|
BLAKE2b-256 | d5030de0fee14df61a9c92779ff2b78b78cb5ec19aaa3c4d6975149c1bea8779 |
Hashes for mod2doctest-0.1.0.win32-py2.4.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | ceb21a2c83b4adf1a8e09bad93d73c877b78e367c72b9a5a9eb28b12e7fa95ac |
|
MD5 | 38a411dd0da16a20f2c7b6f337b32191 |
|
BLAKE2b-256 | 67f66180f64b77b47243aa9997697e0852795415fc971488033df3b052f2d1c9 |