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_webcaptures.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'python/tests/api_webcaptures.py') diff --git a/python/tests/api_webcaptures.py b/python/tests/api_webcaptures.py index 394d0e47..78549b0f 100644 --- a/python/tests/api_webcaptures.py +++ b/python/tests/api_webcaptures.py @@ -94,10 +94,13 @@ def test_webcapture(api): def test_webcapture_examples(api): wc3 = api.get_webcapture('aaaaaaaaaaaaa53xaaaaaaaaam') + assert wc3.releases is None + wc3 = api.get_webcapture('aaaaaaaaaaaaa53xaaaaaaaaam', expand="releases") assert wc3.cdx[0].surt == 'org,asheesh)/' assert wc3.cdx[1].sha1 == 'a637f1d27d9bcb237310ed29f19c07e1c8cf0aa5' assert wc3.archive_urls[1].rel == 'warc' + assert wc3.releases[0].ident def test_bad_webcapture(api): -- cgit v1.2.3