diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-10-30 06:44:48 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-10-30 06:44:48 -0700 |
commit | 1dbfafbdb97579ca97ffc72e16d4df4c3009fc56 (patch) | |
tree | 98cd593cea90bfaedb9332c6d146719aa13d93b4 /tests/hazmat/backends/test_openssl.py | |
parent | 147703e9db15f4fddf13afc354a52e9777eb2dae (diff) | |
download | cryptography-1dbfafbdb97579ca97ffc72e16d4df4c3009fc56.tar.gz cryptography-1dbfafbdb97579ca97ffc72e16d4df4c3009fc56.tar.bz2 cryptography-1dbfafbdb97579ca97ffc72e16d4df4c3009fc56.zip |
Make sure algorithm classes fully implement their interface
Diffstat (limited to 'tests/hazmat/backends/test_openssl.py')
-rw-r--r-- | tests/hazmat/backends/test_openssl.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index ebd8686c..bc6a2bac 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -439,8 +439,7 @@ class TestOpenSSLCMAC(object): def test_unsupported_cipher(self): @utils.register_interface(BlockCipherAlgorithm) class FakeAlgorithm(object): - def __init__(self): - self.block_size = 64 + block_size = 64 with raises_unsupported_algorithm(_Reasons.UNSUPPORTED_CIPHER): backend.create_cmac_ctx(FakeAlgorithm()) |