예제 #1
0
def test_encode_lowercase():
    cipher = VigenereCipher("TRain")
    encoded = cipher.encoded("encoded in Python")
    assert encoded == "XECWQXUIVCRKHWA"
예제 #2
0
def test_encode_spaces():
    cipher = VigenereCipher("TRAIN")
    encoded = cipher.encoded("ENCODED IN PYTHON")
    assert encoded == "XECWQXUIVCRKHWA"