aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-28 19:35:14 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-28 19:35:14 -0800
commitbd613a2d432fe487ed91f490e8058732749b5a8e (patch)
tree250ff2b83102274cfab635af7ead83ab09c93d3c /python
parenta00722505b3f4d523787935dd2776e62c45b27ba (diff)
downloadfatcat-bd613a2d432fe487ed91f490e8058732749b5a8e.tar.gz
fatcat-bd613a2d432fe487ed91f490e8058732749b5a8e.zip
add quick test for WARN rust logging
Diffstat (limited to 'python')
-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)
+