summaryrefslogtreecommitdiff
path: root/testdata.json
diff options
context:
space:
mode:
authorEd Summers <ed.summers@gmail.com>2010-09-07 12:15:28 -0700
committerDavid Tsai <dbtsai@dbtsai.com>2012-08-22 14:41:23 -0700
commit8bfb5ebf9d6cef561f5ab6462e51291127cdf1ad (patch)
tree96b281dae2037b755c5c25d0c47f81009ee14a13 /testdata.json
parent7d9fecd71d687ee61bbc055d5b5026a2d36d02d5 (diff)
downloadpython-mimeparse-8bfb5ebf9d6cef561f5ab6462e51291127cdf1ad.tar.gz
Respect order of supported in the event of a tie.
Diffstat (limited to 'testdata.json')
-rw-r--r--testdata.json6
1 files changed, 4 insertions, 2 deletions
diff --git a/testdata.json b/testdata.json
index af08397..0d8a4f3 100644
--- a/testdata.json
+++ b/testdata.json
@@ -29,11 +29,13 @@
[[["application/json", "text/html"], "application/json, text/javascript, */*"], "application/json", "common AJAX scenario"],
[[["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"]
+ [[["image/*", "application/xml"], "image/*"], "image/*", "match using a wildcard for both requested and supported"],
+ [[["text/html", "application/rdf+xml"], "text/html, application/rdf+xml"], "application/rdf+xml", "match should use highest order of supported when there is a tie"],
+ [[["application/rdf+xml", "text/html"], "text/html, application/rdf+xml"], "text/html", "match should use highest order of supported when there is a tie"]
],
"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
+}