Example #1
0
def test_type_accessor():
    for name in get_ciphers():
        description = "test_type_accessor(%s)" % name
        cipher = CipherBase(name)
        test = partial(assert_equal, cipher._type, _type_from_name(name))
        test.description = description
        yield test
Example #2
0
def test_type_accessor():
    for name in get_ciphers():
        description = "test_type_accessor(%s)" % name
        cipher = CipherBase(name)
        test = partial(assert_equal, cipher._type, _type_from_name(name))
        test.description = description
        yield test
Example #3
0
def test_type_from_name():
    assert_equal(
        tuple(_type_from_name(name) for name in CIPHER_NAME),
        tuple(range(len(CIPHER_NAME))))
Example #4
0
def test_type_from_name():
    assert_equal(tuple(_type_from_name(name) for name in CIPHER_NAME),
                 tuple(range(len(CIPHER_NAME))))