Skip to content

Commit f6e53e2

Browse files
committed
minor fix
1 parent 5d698db commit f6e53e2

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

examples/test/keyrings/test_i_raw_rsa_keyring_example.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@
1010

1111
def test_encrypt_and_decrypt_with_keyring_without_user_defined_keys():
1212
"""Test function for encrypt and decrypt using the Raw RSA Keyring example
13-
where user doesn't provide the public and private keys"""
13+
where user doesn't provide the public and private keys
14+
"""
1415
encrypt_and_decrypt_with_keyring()
1516

1617

1718
def test_encrypt_and_decrypt_with_keyring_with_user_defined_keys():
1819
"""Test function for encrypt and decrypt using the Raw RSA Keyring example
1920
where user provides the public and private keys. To test this, we create the
20-
keys using the generate_rsa_keys function"""
21+
keys using the generate_rsa_keys function
22+
"""
2123
user_public_key, user_private_key = generate_rsa_keys()
2224
encrypt_and_decrypt_with_keyring(public_key=user_public_key, private_key=user_private_key)
2325

@@ -26,7 +28,8 @@ def test_encrypt_and_decrypt_fails_if_user_provides_only_public_key():
2628
"""Test function for encrypt and decrypt using the Raw RSA Keyring example
2729
where user provides only the public key. The program should throw an Assertion error
2830
as this example requires the user to either provide both private and public keys to
29-
test both encryption and decryption, or not provide any keys and the example generates both"""
31+
test both encryption and decryption, or not provide any keys and the example generates both
32+
"""
3033
user_public_key, user_private_key = generate_rsa_keys()
3134
try:
3235
encrypt_and_decrypt_with_keyring(public_key=user_public_key)
@@ -40,7 +43,8 @@ def test_encrypt_and_decrypt_fails_if_user_provides_only_private_key():
4043
"""Test function for encrypt and decrypt using the Raw RSA Keyring example
4144
where user provides only the private key. The program should throw an Assertion error
4245
as this example requires the user to either provide both private and public keys to
43-
test both encryption and decryption, or not provide any keys and the example generates both"""
46+
test both encryption and decryption, or not provide any keys and the example generates both
47+
"""
4448
user_public_key, user_private_key = generate_rsa_keys()
4549
try:
4650
encrypt_and_decrypt_with_keyring(private_key=user_private_key)

0 commit comments

Comments
 (0)