mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 14:50:19 +00:00
58 lines
340 B
ReStructuredText
58 lines
340 B
ReStructuredText
Testing Your Code
|
|
=====================
|
|
|
|
Testing your code is very important.
|
|
|
|
|
|
The Basics
|
|
::::::::::
|
|
|
|
|
|
Unittest
|
|
--------
|
|
|
|
|
|
|
|
Doc Strings
|
|
-----------
|
|
|
|
|
|
|
|
|
|
Tools
|
|
:::::
|
|
|
|
|
|
Doctest
|
|
-------
|
|
|
|
|
|
Nose
|
|
----
|
|
|
|
|
|
::
|
|
|
|
$ pip install tox
|
|
|
|
|
|
|
|
Unittest2
|
|
---------
|
|
|
|
A backport of Python 2.7's
|
|
|
|
|
|
::
|
|
|
|
$ pip install tox
|
|
|
|
|
|
tox
|
|
---
|
|
|
|
|
|
::
|
|
|
|
$ pip install tox
|