Skip to content

Commit

Permalink
Add test for decoding the resumption token
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhoads committed Feb 2, 2022
1 parent 441fa40 commit 027c5f4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/unit/test_oai_server.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import oaipmh.server


def test_decode_resumption_token_raises_no_error():
EXAMPLE_RESUMPTION = "metadataPrefix%3Ddatacite%26set%3DSND.BOLIN%26paging_cursor%3DMTU4NTU2NDkxMTAwMCwxMC4xNzA0My9zd2VydXMtMjAxNC1kMTNj%26cursor%3D1"
try:
oaipmh.server.decodeResumptionToken(EXAMPLE_RESUMPTION)
except Exception as exc:
assert False, f"DecodingResumptionToken raised an exception {exc}"


0 comments on commit 027c5f4

Please sign in to comment.