diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-20 19:56:09 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-20 19:56:09 -0700 |
commit | 7815c6739e4ae730c7fe4589e8aa15b2b0f1033d (patch) | |
tree | 6ed0738b680e5fd22aa84e3c6d14413515bc57d2 /python/tests/api_webcaptures.py | |
parent | d56a544ec64df7ce6257982bd7a02b45b2cd1af5 (diff) | |
download | fatcat-7815c6739e4ae730c7fe4589e8aa15b2b0f1033d.tar.gz fatcat-7815c6739e4ae730c7fe4589e8aa15b2b0f1033d.zip |
add release expand api tests
Diffstat (limited to 'python/tests/api_webcaptures.py')
-rw-r--r-- | python/tests/api_webcaptures.py | 3 |
1 files changed, 3 insertions, 0 deletions
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): |