From 05e9c058362814736222a55c3b6ed3d55ace7c3a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 10 Jun 2021 22:03:33 +0100 Subject: [PATCH] Simplify test --- tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests.py b/tests.py index 6691464bc..7fcc5b8b6 100644 --- a/tests.py +++ b/tests.py @@ -3803,12 +3803,12 @@ def testDatashards() -> None: print('testDatashards') shipper = datashards.utils.store('memory://') assert shipper - saveData = open('README.md', 'rb').read() + saveData = b'some data to be stored' data_size = len(saveData) saveData = saveData + (b'\0' * (32768 - data_size)) assert len(saveData) == 32768 urn = shipper.put(saveData) - assert urn + assert urn == 'urn:sha256d:5JSThDD4-TdA24qygZPKtmVwbv1fErijAnF-u5EOLco=' loadData = shipper.get(urn) assert loadData