diff options
| author | Ade Oshineye <adewale@gmail.com> | 2010-02-15 17:52:29 -0800 |
|---|---|---|
| committer | David Tsai <dbtsai@dbtsai.com> | 2012-08-22 14:39:17 -0700 |
| commit | 7d9fecd71d687ee61bbc055d5b5026a2d36d02d5 (patch) | |
| tree | b63e06f8451810fbf68b1d84ae6853a25f83327a /README | |
| parent | bb1cbb2aa586d3ac74a21148a03c207d18a64262 (diff) | |
| download | python-mimeparse-7d9fecd71d687ee61bbc055d5b5026a2d36d02d5.tar.gz | |
Added tests for parse_mime_type. One came from the docstring for the Python
function. The other came from the test for the Go function. Updated the README
file to describe the structure of the test data.
Diffstat (limited to 'README')
| -rw-r--r-- | README | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -4,6 +4,12 @@ See section 14.1 of RFC 2616 (the HTTP specification) for a complete explanation Testing ======= +The format of the JSON test data file is as follows: +A top-level JSON object which has a key for each of the functions to be tested. The value corresponding to that key is a list of tests. Each test contains: the argument or arguments to the function being tested, the expected results and an optional description. + + +Python +====== The Python tests require either Python 2.6 or the installation of the SimpleJSON library. Installing SimpleJson can be done by: |
