aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-10-26 15:25:28 -0700
committerBryan Newbold <bnewbold@archive.org>2021-10-26 15:25:28 -0700
commitf08bbeb7981fd692ffc9277d15d282883a408051 (patch)
treeb1dc6d7770674723b2990b570adae9c61d579ddc /python/tests
parentb6a7989c8d2547ad0ea406dbfd4b8a29cc14151d (diff)
downloadsandcrawler-f08bbeb7981fd692ffc9277d15d282883a408051.tar.gz
sandcrawler-f08bbeb7981fd692ffc9277d15d282883a408051.zip
live tests: FTP wayback replay now returns 200, not 226
Diffstat (limited to 'python/tests')
-rw-r--r--python/tests/test_live_wayback.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/tests/test_live_wayback.py b/python/tests/test_live_wayback.py
index bc74916..f82eac4 100644
--- a/python/tests/test_live_wayback.py
+++ b/python/tests/test_live_wayback.py
@@ -139,7 +139,7 @@ def test_lookup_ftp(wayback_client):
assert resp.hit is True
assert resp.status == "success"
assert resp.terminal_url == url
- assert resp.terminal_status_code == 226
+ assert resp.terminal_status_code in (226, 200)
assert resp.cdx.url == url
assert resp.revisit_cdx
assert resp.revisit_cdx.url != url
@@ -154,7 +154,7 @@ def test_lookup_ftp(wayback_client):
assert resp.hit is True
assert resp.status == "success"
assert resp.terminal_url == url
- assert resp.terminal_status_code == 226
+ assert resp.terminal_status_code in (226, 200)
assert resp.cdx.url == url
file_meta = gen_file_metadata(resp.body)