aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests/api_filesets.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/tests/api_filesets.py')
-rw-r--r--python/tests/api_filesets.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/tests/api_filesets.py b/python/tests/api_filesets.py
index 6d755744..be023325 100644
--- a/python/tests/api_filesets.py
+++ b/python/tests/api_filesets.py
@@ -27,6 +27,7 @@ def test_fileset(api):
md5="5f83592b5249671719bbed6ce91ecfa8",
sha1="455face3598611458efe1f072e58624790a67266",
sha256="429bcafa4d3d0072d5b2511e12c85c1aac1d304011d1c406da14707f7b9cd905",
+ mimetype="text/plain",
extra={"x": 1, "y": "q"},
),
],
@@ -77,7 +78,8 @@ def test_fileset_examples(api):
assert fs3.urls[0].url == 'http://other-personal-blog.name/dataset/'
assert fs3.urls[1].rel == 'archive'
assert fs3.manifest[1].md5 == 'f4de91152c7ab9fdc2a128f962faebff'
- assert fs3.manifest[1].extra['mimetype'] == 'application/gzip'
+ assert fs3.manifest[1].mimetype == 'application/gzip'
+ assert fs3.manifest[1].extra != None
assert fs3.releases[0].ident
assert fs3.releases[0].abstracts is None
assert fs3.releases[0].refs is None