示例#1
0
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
示例#2
0
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
示例#3
0
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
示例#4
0
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