summaryrefslogtreecommitdiff
path: root/testdata.json
diff options
context:
space:
mode:
authorStefan Wójcik <wojcikstefan@gmail.com>2016-04-21 06:18:39 +0200
committerDB Tsai, Apache Spark Committer <dbtsai@dbtsai.com>2016-04-20 21:18:39 -0700
commit40e441782286b62caf521892af6b6e83021b5898 (patch)
treeff6265f4f1d1cc669bc7f0ca7fe6f9d802fc2f63 /testdata.json
parentcbf1c8686fdef2b1459b714d49856338f63c574e (diff)
downloadpython-mimeparse-40e441782286b62caf521892af6b6e83021b5898.tar.gz
make sure mimeparse gracefully handles an invalid mime type of the form "text/extra/part" (#14)
Diffstat (limited to 'testdata.json')
-rw-r--r--testdata.json3
1 files changed, 2 insertions, 1 deletions
diff --git a/testdata.json b/testdata.json
index c23f668..bb89e6f 100644
--- a/testdata.json
+++ b/testdata.json
@@ -41,6 +41,7 @@
"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"}]],
- ["text", null]
+ ["text", null],
+ ["text/something/invalid", null]
]
}