Beispiel #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
Beispiel #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
Beispiel #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
Beispiel #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