diff options
author | Stefan Wojcik <wojcikstefan@gmail.com> | 2016-09-28 18:19:49 -0400 |
---|---|---|
committer | Stefan Wojcik <wojcikstefan@gmail.com> | 2016-09-28 18:19:49 -0400 |
commit | cc55a1ba1479e2897a819916c28fd050f7a9fea2 (patch) | |
tree | 8b28d212cbacee0205c21c36c3488fc105d4f071 | |
parent | 5443249bcddbb9e8e4f3de95f14b3a9bdc7aa3e6 (diff) | |
download | python-mimeparse-cc55a1ba1479e2897a819916c28fd050f7a9fea2.tar.gz |
extra test based on RFC 7231 page 38
-rw-r--r-- | mimeparse.py | 1 | ||||
-rw-r--r-- | testdata.json | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/mimeparse.py b/mimeparse.py index 0c09729..897b2df 100644 --- a/mimeparse.py +++ b/mimeparse.py @@ -1,5 +1,4 @@ import cgi -from functools import reduce __version__ = '1.5.2' __author__ = 'Joe Gregorio' diff --git a/testdata.json b/testdata.json index 7e591be..cd655c8 100644 --- a/testdata.json +++ b/testdata.json @@ -151,6 +151,14 @@ ], [ [ + ["text/plain", "text/plain;format=flowed", "text/html"], + "text/*, text/plain, text/plain;format=flowed, */*" + ], + "text/plain;format=flowed", + "most specific reference has precedence" + ], + [ + [ ["application/rdf+xml", "text/html"], "text/html, application/rdf+xml" ], |