示例#1
0
def test_simple_encryption():
    encrypted_text = rotate13("This is a banana fruitcake.")
    assert encrypted_text == "Guvf vf n onanan sehvgpnxr."
示例#2
0
def test_simple_decryption():
    plaintext = rotate13("Guvf vf n onanan sehvgpnxr.")
    assert plaintext == "This is a banana fruitcake."
示例#3
0
def test_empty_string():
    encrypted_text = rotate13("")
    assert encrypted_text == ""