summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-12-24 20:21:30 -0300
committerVictor Shyba <victor1984@riseup.net>2017-12-24 20:21:30 -0300
commited498fad82372181a1d14bba5c7c7e528b1fa457 (patch)
treee0ea6909921346e7de161c2f20a0683493b67384
parentc5b7da7d7898f18b620927657875845ca31dbf36 (diff)
[test] fix checked range for size
Was too high due a left over from some bug hunting. 20 is enough to check both zero sized and under/equal/above tag size.
-rw-r--r--tests/client/test_crypto.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/client/test_crypto.py b/tests/client/test_crypto.py
index 8a040cd4..db095738 100644
--- a/tests/client/test_crypto.py
+++ b/tests/client/test_crypto.py
@@ -128,7 +128,7 @@ class BlobTestCase(unittest.TestCase):
@defer.inlineCallbacks
def test_get_unarmored_ciphertext_size(self):
- for size_to_test in xrange(-1, 400):
+ for size_to_test in xrange(20): # test from 0 to above tag size
test_content = '\x00' * size_to_test
size = _crypto.get_unarmored_ciphertext_size(len(test_content))
inf = BytesIO(test_content)