diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-09 00:42:28 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-06-09 00:42:28 +0300 |
commit | 036521410a2b22a7810d5be1ddd4f208ecfbb1bf (patch) | |
tree | 45b0f04222cd294c7c18ca83c5c6ff5395ad694e /test/800-38a.py | |
parent | test: refactoring (diff) | |
download | aes-tools-036521410a2b22a7810d5be1ddd4f208ecfbb1bf.tar.gz aes-tools-036521410a2b22a7810d5be1ddd4f208ecfbb1bf.zip |
test/800-38a.py: more verbose logging
Diffstat (limited to '')
-rw-r--r-- | test/800-38a.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/800-38a.py b/test/800-38a.py index d99fa4a..64a5cd0 100644 --- a/test/800-38a.py +++ b/test/800-38a.py @@ -100,6 +100,10 @@ class TestAlgorithm(unittest.TestCase): self._mode = mode def test_encrypt(self): + logging.info('Testing encryption...') + logging.info('\tAlgorithm: ' + self._algo) + logging.info('\tMode: ' + self._mode) + key = _keys[self._algo] iv = None if self._algo in _init_vectors and self._mode in _init_vectors[self._algo]: @@ -109,6 +113,10 @@ class TestAlgorithm(unittest.TestCase): self.assertEqual(ciphertexts, self._tools.run_encrypt_tool(self._algo, self._mode, input)) def test_decrypt(self): + logging.info('Testing decryption...') + logging.info('\tAlgorithm: ' + self._algo) + logging.info('\tMode: ' + self._mode) + key = _keys[self._algo] iv = None if self._algo in _init_vectors and self._mode in _init_vectors[self._algo]: @@ -133,7 +141,7 @@ if __name__ == '__main__': if args.log is None: logging.getLogger().addHandler(logging.NullHandler()) else: - logging.basicConfig(filename=args.log, format='%(asctime)s | %(module)s | %(message)s', level=logging.INFO) + logging.basicConfig(filename=args.log, format='%(asctime)s | %(module)s | %(message)s', level=logging.DEBUG) suite = unittest.TestSuite() for algo in _ciphertexts: |