()
| 200 | |
| 201 | |
| 202 | def test_encryptor(): |
| 203 | from os import urandom |
| 204 | plain = urandom(10240) |
| 205 | for method in CIPHERS_TO_TEST: |
| 206 | logging.warn(method) |
| 207 | encryptor = Encryptor(b'key', method) |
| 208 | decryptor = Encryptor(b'key', method) |
| 209 | cipher = encryptor.encrypt(plain) |
| 210 | plain2 = decryptor.decrypt(cipher) |
| 211 | assert plain == plain2 |
| 212 | |
| 213 | |
| 214 | def test_encrypt_all(): |
no test coverage detected