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 /testdata.json | |
| 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 'testdata.json')
| -rw-r--r-- | testdata.json | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/testdata.json b/testdata.json index aea0c55..af08397 100644 --- a/testdata.json +++ b/testdata.json @@ -30,5 +30,10 @@ [[["application/json", "text/html"], "application/json, text/html;q=0.9"], "application/json", "verify fitness ordering"], [[["image/*", "application/xml"], "image/png"], "image/*", "match using a type wildcard"], [[["image/*", "application/xml"], "image/*"], "image/*", "match using a wildcard for both requested and supported"] +], + +"parse_mime_type": [ + ["application/xhtml;q=0.5", ["application", "xhtml", {"q": "0.5"}]], + ["application/xhtml;q=0.5;ver=1.2", ["application", "xhtml", {"q": "0.5", "ver": "1.2"}]] ] }
\ No newline at end of file |
