From 036521410a2b22a7810d5be1ddd4f208ecfbb1bf Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 9 Jun 2015 00:42:28 +0300 Subject: test/800-38a.py: more verbose logging --- test/800-38a.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'test/800-38a.py') 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: -- cgit v1.2.3