Verified Commit ed498fad authored by Victor's avatar Victor
Browse files

[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.
parent c5b7da7d
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment