From ed498fad82372181a1d14bba5c7c7e528b1fa457 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Sun, 24 Dec 2017 20:21:30 -0300 Subject: [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. --- tests/client/test_crypto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3