def test_digestmod_from_ctor(): for name in hash.algorithms_available: md_alg = vars(hash)[name] assert callable(md_alg) alg = _get_md_alg(md_alg) test = partial(assert_is_instance, alg(), hash.Hash) test.description = "test_digestmod_from_ctor(%s)" % name yield test
def test_digestmod(): for name in hash.algorithms_available: alg = _get_md_alg(name) test = partial(assert_is_instance, alg(), hash.Hash) test.description = "test_digestmod_from_string(%s)" % name yield test