From e20696180dda225b648df9b72f57f5de658c322f Mon Sep 17 00:00:00 2001 From: phil Date: Wed, 8 Oct 2008 12:25:49 +0000 Subject: [PATCH] Use require() in test files git-svn-id: svn+ssh://devel.yobi.be/home/svn/CryptoPlus/trunk@64 49921240-e1b6-4d8d-af3b-5ae6c3d9e7c1 --- test/test.py | 2 ++ test/test_doctests.py | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/test/test.py b/test/test.py index e800d75..092f949 100644 --- a/test/test.py +++ b/test/test.py @@ -1,5 +1,7 @@ #!/usr/bin/env python +from pkg_resources import require +require("CryptoPlus>=1.0") from CryptoPlus.testvectors import dict_ofb_aes, dict_ctr_aes, dict_cfb_aes, dict_cbc_aes from CryptoPlus.testvectors import dict_cmac_aes128,dict_cmac_aes192,dict_cmac_aes256,dict_cmac_tdes2,dict_cmac_tdes3 from CryptoPlus.testvectors import dict_des,dict_tdes2,dict_tdes3 diff --git a/test/test_doctests.py b/test/test_doctests.py index 912336a..06ba824 100644 --- a/test/test_doctests.py +++ b/test/test_doctests.py @@ -2,6 +2,8 @@ import unittest import doctest +from pkg_resources import require +require("CryptoPlus>=1.0") #import CryptoPlus.Cipher.python_AES from CryptoPlus.Cipher import python_AES, AES, python_DES, DES, python_DES3, DES3, python_Blowfish, Blowfish, python_Twofish, python_Serpent, python_Rijndael, CAST, ARC2, python_PRESENT try: @@ -18,6 +20,6 @@ for mod in python_AES, AES, python_DES, DES, python_DES3, DES3, python_Blowfish, if not import_error: suite.addTest(doctest.DocTestSuite(IDEA)) suite.addTest(doctest.DocTestSuite(RC5)) -runner = unittest.TextTestRunner() +runner = unittest.TextTestRunner(verbosity=2) runner.run(suite) -- 2.11.4.GIT