diff options
| author | DB Tsai <dbtsai@dbtsai.com> | 2016-01-05 09:41:45 -0800 |
|---|---|---|
| committer | DB Tsai <dbtsai@dbtsai.com> | 2016-01-05 09:41:45 -0800 |
| commit | 6ce150bdcd1591387cc3682e2eeea5b36e93f617 (patch) | |
| tree | 8296e269e81e6a1d3b30df91c00e3295a8a3a878 /mimeparse_test.py | |
| parent | 35bfaceec39136b4d4dc09b877a14829bc82b8a3 (diff) | |
| parent | bead79690b6f2786313fb2e4f0f1cd2cde2cad07 (diff) | |
| download | python-mimeparse-6ce150bdcd1591387cc3682e2eeea5b36e93f617.tar.gz | |
Merge pull request #7 from scop/tests
Test with Python 3.4 and 3.5, pep8 fixes
Diffstat (limited to 'mimeparse_test.py')
| -rwxr-xr-x | mimeparse_test.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/mimeparse_test.py b/mimeparse_test.py index ce639e4..d179982 100755 --- a/mimeparse_test.py +++ b/mimeparse_test.py @@ -5,17 +5,18 @@ Python tests for Mime-Type Parser. This module loads a json file and converts the tests specified therein to a set of PyUnitTestCases. Then it uses PyUnit to run them and report their status. """ -__version__ = "0.1" -__author__ = 'Ade Oshineye' -__email__ = "ade@oshineye.com" -__credits__ = "" - import json import mimeparse import unittest from functools import partial +__version__ = "0.1" +__author__ = 'Ade Oshineye' +__email__ = "ade@oshineye.com" +__credits__ = "" + + def test_parse_media_range(args, expected): expected = tuple(expected) result = mimeparse.parse_media_range(args) |
