From bd613a2d432fe487ed91f490e8058732749b5a8e Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 28 Jan 2019 19:35:14 -0800 Subject: add quick test for WARN rust logging --- python/tests/api_misc.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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) + -- cgit v1.2.3