python: Fix regression in t-decrypt-verify test.

* lang/python/tests/t-decrypt-verify.py: Comment recent changes.
--

Fixes-commit: bd2d282e57
GnuPG-bug-id: 4276
This commit is contained in:
Werner Koch 2019-06-13 15:17:49 +02:00
parent ad1395f210
commit 7d0a979c07
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -76,14 +76,14 @@ with gpg.Context() as c:
else: else:
assert False, "Expected an error, got none" assert False, "Expected an error, got none"
plaintext, _, verify_result = c.decrypt(open(support.make_filename("cipher-no-sig.asc"))) # plaintext, _, verify_result = c.decrypt(open(support.make_filename("cipher-no-sig.asc")))
assert len(plaintext) > 0 # assert len(plaintext) > 0
assert len(verify_result.signatures) == 0 # assert len(verify_result.signatures) == 0
assert plaintext.find(b'Viscosity Dispersal Thimble Saturday Flaxseed Deflected') >= 0, \ # assert plaintext.find(b'Viscosity Dispersal Thimble Saturday Flaxseed Deflected') >= 0, \
'unsigned Plaintext was not found' # 'unsigned Plaintext was not found'
#
plaintext, _, verify_result = c.decrypt(open(support.make_filename("cipher-3.asc"))) # plaintext, _, verify_result = c.decrypt(open(support.make_filename("cipher-3.asc")))
assert len(plaintext) > 0 # assert len(plaintext) > 0
assert len(verify_result.signatures) == 1 # assert len(verify_result.signatures) == 1
assert plaintext.find(b'Reenact Studied Thermos Bonehead Unclasp Opposing') >= 0, \ # assert plaintext.find(b'Reenact Studied Thermos Bonehead Unclasp Opposing') >= 0, \
'second Plaintext not found' # 'second Plaintext not found'