diff options
author | Yesudeep Mangalapilly <yesudeep@gmail.com> | 2011-08-11 02:38:13 +0530 |
---|---|---|
committer | Yesudeep Mangalapilly <yesudeep@gmail.com> | 2011-08-11 02:38:13 +0530 |
commit | e97d0d730367ad3b49efc712c01509500939c904 (patch) | |
tree | d780c2c3d49075c3c26ce587c17e5b1c9921f5b0 /tests/test_load_save_keys.py | |
parent | aed6e8657bc316ccd6964a33c04bd650e9951ae2 (diff) | |
download | rsa-git-e97d0d730367ad3b49efc712c01509500939c904.tar.gz |
Porting to Python 3 complete. All tests except pyasn1 stuff pass.
Diffstat (limited to 'tests/test_load_save_keys.py')
-rw-r--r-- | tests/test_load_save_keys.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_load_save_keys.py b/tests/test_load_save_keys.py index fabe92f..fc1a1aa 100644 --- a/tests/test_load_save_keys.py +++ b/tests/test_load_save_keys.py @@ -24,13 +24,13 @@ Comment: something blah Stuff after the key -----END CONFUSING STUFF----- -''' % B64PRIV_DER) +''' % B64PRIV_DER.decode("utf-8")) CLEAN_PRIVATE_PEM = b('''\ -----BEGIN RSA PRIVATE KEY----- %s -----END RSA PRIVATE KEY----- -''' % B64PRIV_DER) +''' % B64PRIV_DER.decode("utf-8")) PUBLIC_PEM = b(''' -----BEGIN CONFUSING STUFF----- @@ -44,13 +44,13 @@ Comment: something blah Stuff after the key -----END CONFUSING STUFF----- -''' % B64PUB_DER) +''' % B64PUB_DER.decode("utf-8")) CLEAN_PUBLIC_PEM = b('''\ -----BEGIN RSA PUBLIC KEY----- %s -----END RSA PUBLIC KEY----- -''' % B64PUB_DER) +''' % B64PUB_DER.decode("utf-8")) class DerTest(unittest2.TestCase): |