summaryrefslogtreecommitdiffstats
path: root/python/tests/harvest_state.py
diff options
context:
space:
mode:
authorChristian Clauss <cclauss@me.com>2020-05-14 00:06:10 +0200
committerGitHub <noreply@github.com>2020-05-14 00:06:10 +0200
commit938209d5a6011066a23f3ca9f1c85beeb8b400a6 (patch)
treef160f95667cfca38ec5192dcf699d6efb74b7514 /python/tests/harvest_state.py
parent5a61dcb5c4f149d350c7f01421a13c620cef7f48 (diff)
downloadfatcat-938209d5a6011066a23f3ca9f1c85beeb8b400a6.tar.gz
fatcat-938209d5a6011066a23f3ca9f1c85beeb8b400a6.zip
Indentity is not the same this as equality in Python
Diffstat (limited to 'python/tests/harvest_state.py')
-rw-r--r--python/tests/harvest_state.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/tests/harvest_state.py b/python/tests/harvest_state.py
index 85cd2c99..da9bef84 100644
--- a/python/tests/harvest_state.py
+++ b/python/tests/harvest_state.py
@@ -11,7 +11,7 @@ def test_harvest_state():
hs = HarvestState(catchup_days=5)
assert max(hs.to_process) < today
- assert len(hs.to_process) is 5
+ assert len(hs.to_process) == 5
for d in list(hs.to_process):
hs.complete(d)
@@ -22,12 +22,12 @@ def test_harvest_state():
start_date=datetime.date(2000,1,1),
end_date=datetime.date(2000,1,3),
)
- assert len(hs.to_process) is 3
+ assert len(hs.to_process) == 3
hs = HarvestState(
start_date=datetime.date(2000,1,29),
end_date=datetime.date(2000,2,2),
)
- assert len(hs.to_process) is 5
+ assert len(hs.to_process) == 5
hs = HarvestState(catchup_days=0)
assert hs.next() is None
@@ -35,6 +35,6 @@ def test_harvest_state():
start_date=datetime.date(2000,1,1),
end_date=datetime.date(2000,1,3),
)
- assert len(hs.to_process) is 3
+ assert len(hs.to_process) == 3
hs.update('{"completed-date": "2000-01-02"}')
- assert len(hs.to_process) is 2
+ assert len(hs.to_process) == 2