aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests/api_webcaptures.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-07 18:16:46 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-07 18:16:46 -0700
commit75a824c0fd5697f7748f57f09e022bce97d32e0c (patch)
tree5ca687144a9deafa821c6a06a90e475e07cd405f /python/tests/api_webcaptures.py
parent778e71eb30a44dc6dce51709d2b70ba1559fc98b (diff)
downloadfatcat-75a824c0fd5697f7748f57f09e022bce97d32e0c.tar.gz
fatcat-75a824c0fd5697f7748f57f09e022bce97d32e0c.zip
test basic entity revision GET
Diffstat (limited to 'python/tests/api_webcaptures.py')
-rw-r--r--python/tests/api_webcaptures.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/tests/api_webcaptures.py b/python/tests/api_webcaptures.py
index dc1754b3..db3ef172 100644
--- a/python/tests/api_webcaptures.py
+++ b/python/tests/api_webcaptures.py
@@ -51,6 +51,12 @@ def test_webcapture(api):
api.accept_editgroup(eg.editgroup_id)
wc2 = api.get_webcapture(wc1edit.ident)
+ # get revision
+ wc2_rev = api.get_webcapture_revision(wc1edit.revision)
+ assert wc1edit.revision == wc2_rev.revision
+ assert wc2.revision == wc2_rev.revision
+ assert wc2.timestamp == wc2_rev.timestamp
+
# check that fields match
# I don't know why these aren't equal...
#print(wc1.archive_urls)