Fixed several assertTrue() that were intended to be assertEqual(). (GH-8191)

Fixed also testing the "always" warning filter.
This commit is contained in:
Sergey Fedoseev 2018-07-09 20:25:55 +05:00 committed by Serhiy Storchaka
parent c287545d62
commit b796e7dcdc
6 changed files with 13 additions and 9 deletions

View file

@ -5843,7 +5843,7 @@ class LinuxKernelCryptoAPI(unittest.TestCase):
op=socket.ALG_OP_ENCRYPT, iv=iv)
enc = op.recv(msglen * multiplier)
self.assertEqual(len(enc), msglen * multiplier)
self.assertTrue(enc[:msglen], ciphertext)
self.assertEqual(enc[:msglen], ciphertext)
op, _ = algo.accept()
with op: