예제 #1
0
def test_cipher_with_salt_equal_zero():
    letters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
    assert letters == ''.join(make_cipher(0))
예제 #2
0
def test_cipher_length():
    cipher = make_cipher(5)
    assert 52 == len(cipher)
예제 #3
0
def test_cipher_with_salt_equal_100():
    cipher = make_cipher(100)
    assert cipher[0] == 'a'
예제 #4
0
def test_cipher_with_salt_equal_negative_100():
    cipher = make_cipher(-100)
    assert cipher[0] == 'a'
예제 #5
0
def test_cipher_with_salt_equal_negative_five():
    letters = 'VWXYZabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTU'
    assert letters == ''.join(make_cipher(-5))