diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-02-23 22:03:09 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-02-25 07:50:25 -0600 |
commit | 8aad028501ef434071d3969bce41c4e6375b4c61 (patch) | |
tree | a06d8e93e8ff50d2e419f6524a8495a644e5f4a6 /tests/hazmat/backends/test_openssl.py | |
parent | 4d236049529bc1ab1b301756a6c9be7a30ce8f8a (diff) | |
download | cryptography-8aad028501ef434071d3969bce41c4e6375b4c61.tar.gz cryptography-8aad028501ef434071d3969bce41c4e6375b4c61.tar.bz2 cryptography-8aad028501ef434071d3969bce41c4e6375b4c61.zip |
rename dump to as_bytes
Diffstat (limited to 'tests/hazmat/backends/test_openssl.py')
-rw-r--r-- | tests/hazmat/backends/test_openssl.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index b5de702d..8cf14b98 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -502,7 +502,7 @@ class TestRSAPEMSerialization(object): password = b"x" * 1024 key = RSA_KEY_2048.private_key(backend) with pytest.raises(ValueError): - key.dump( + key.as_bytes( serialization.Encoding.PEM, serialization.Format.PKCS8, serialization.BestAvailableEncryption(password) @@ -511,7 +511,7 @@ class TestRSAPEMSerialization(object): def test_unsupported_key_encoding(self): key = RSA_KEY_2048.private_key(backend) with pytest.raises(ValueError): - key.dump( + key.as_bytes( serialization.Encoding.DER, serialization.Format.PKCS8, serialization.NoEncryption() |