From 7815c6739e4ae730c7fe4589e8aa15b2b0f1033d Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 20 May 2019 19:56:09 -0700 Subject: add release expand api tests --- python/tests/api_misc.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'python/tests/api_misc.py') diff --git a/python/tests/api_misc.py b/python/tests/api_misc.py index ef26a6c0..6fea9d29 100644 --- a/python/tests/api_misc.py +++ b/python/tests/api_misc.py @@ -29,6 +29,12 @@ def test_lookup_hide_extend(api): assert r.container.issnl assert r.abstracts == [] + f = api.lookup_file(sha256='ffc1005680cb620eec4c913437dfabbf311b535cfe16cbaeb2faec1f92afc362') + assert f.releases is None + + f = api.lookup_file(sha256='ffc1005680cb620eec4c913437dfabbf311b535cfe16cbaeb2faec1f92afc362', expand='releases') + assert f.releases[0].ident == f.release_ids[0] + def test_unexpected_body(api): eg = quick_eg(api) -- cgit v1.2.3