aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests/api_filesets.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_filesets.py
parent778e71eb30a44dc6dce51709d2b70ba1559fc98b (diff)
downloadfatcat-75a824c0fd5697f7748f57f09e022bce97d32e0c.tar.gz
fatcat-75a824c0fd5697f7748f57f09e022bce97d32e0c.zip
test basic entity revision GET
Diffstat (limited to 'python/tests/api_filesets.py')
-rw-r--r--python/tests/api_filesets.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/tests/api_filesets.py b/python/tests/api_filesets.py
index 966b85ca..6f3305c1 100644
--- a/python/tests/api_filesets.py
+++ b/python/tests/api_filesets.py
@@ -44,6 +44,11 @@ def test_fileset(api):
api.accept_editgroup(eg.editgroup_id)
fs2 = api.get_fileset(fs1edit.ident)
+ # get revision
+ fs2_rev = api.get_fileset_revision(fs1edit.revision)
+ assert fs1edit.revision == fs2_rev.revision
+ assert fs2.revision == fs2_rev.revision
+
# check that fields match
assert fs1.urls == fs2.urls
assert fs1.manifest == fs2.manifest