def test_cbc_using_ecb(self): """Challenge 10""" cipher = base64.b64decode(open("data/10.txt").read()) key = "YELLOW SUBMARINE" text = Crypto.decrypt_cbc_using_ecb(cipher, key) self.assertEqual(open('data/plaintext.txt').read(), text) self.assertEquals(cipher, Crypto.encrypt_cbc_using_ecb(text, key))