def test_twofish(): from Crypto.SelfTest.Cipher.common import make_block_tests if twofish is None: warnings.warn( "Twofish not available on this system. Skipping its tests.") return for testcase in make_block_tests(twofish, "Twofish", test_data): # Hack for Nose yield getattr(testcase, testcase._testMethodName)
def test_camellia(): from Crypto.SelfTest.Cipher.common import make_block_tests if camellia is None: warnings.warn( "Camellia not available on this system. Skipping its tests.") return for testcase in make_block_tests(camellia, "Camellia", test_data): # Hack for Nose yield getattr(testcase, testcase._testMethodName)
def test_camellia(): from Crypto.SelfTest.Cipher.common import make_block_tests if camellia is None: warnings.warn( "Camellia not available on this system. Skipping its tests." ) return for testcase in make_block_tests(camellia, "Camellia", test_data): # Hack for Nose yield getattr(testcase, testcase._testMethodName)
def test_twofish(): from Crypto.SelfTest.Cipher.common import make_block_tests if twofish is None: warnings.warn( "Twofish not available on this system. Skipping its tests." ) return for testcase in make_block_tests(twofish, "Twofish", test_data): # Hack for Nose yield getattr(testcase, testcase._testMethodName)
def get_tests(config={}): return make_block_tests(twofish, "Twofish", test_data)
def test_aidea(): from Crypto.SelfTest.Cipher.common import make_block_tests for testcase in make_block_tests(aidea, "AIDEA", test_data): # Hack for Nose yield getattr(testcase, testcase._testMethodName)
def get_testcases(config={}): testcases = make_block_tests(aidea, "AIDEA", test_data) return testcases
def get_tests(config={}): return make_block_tests(camellia, "Camellia", test_data)