예제 #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