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.py6
1 files changed, 6 insertions, 0 deletions
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)