summaryrefslogtreecommitdiffstats
path: root/python/tests/api_misc.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/tests/api_misc.py')
-rw-r--r--python/tests/api_misc.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/python/tests/api_misc.py b/python/tests/api_misc.py
index 0a0f16da..27d64025 100644
--- a/python/tests/api_misc.py
+++ b/python/tests/api_misc.py
@@ -28,3 +28,15 @@ def test_lookup_hide_extend(api):
assert r.files is None
assert r.container.issnl
assert r.abstracts == []
+
+def test_unexpected_body(api):
+
+ eg = quick_eg(api)
+
+ # all the fields!
+ f1 = FileEntity(
+ sha1="88888888888888892dd2657a1e3c992b5dc45dd2",
+ )
+ f1.urls = [dict(url="http://thing", rel="repository", asdf="blue")]
+ api.create_file(f1, editgroup_id=eg.editgroup_id)
+