diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-22 19:24:31 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-22 19:24:31 -0700 |
commit | 25c0037d0d1bf4b4d426cc03b9390456d127d4d7 (patch) | |
tree | febc087d21873d764c7701a18f79cf4eef649f9c /tests/primitives/test_block.py | |
parent | 68e5de708d623a03ea4cbd4d3a4297b5722950eb (diff) | |
parent | f4c59767cdfe7716c82a72b00baa427637b505bd (diff) | |
download | cryptography-25c0037d0d1bf4b4d426cc03b9390456d127d4d7.tar.gz cryptography-25c0037d0d1bf4b4d426cc03b9390456d127d4d7.tar.bz2 cryptography-25c0037d0d1bf4b4d426cc03b9390456d127d4d7.zip |
Merge pull request #172 from reaperhulk/api-to-backend-in-one-easy-step
The great api -> backend rename
Diffstat (limited to 'tests/primitives/test_block.py')
-rw-r--r-- | tests/primitives/test_block.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/primitives/test_block.py b/tests/primitives/test_block.py index 5e147a79..3b3b1f91 100644 --- a/tests/primitives/test_block.py +++ b/tests/primitives/test_block.py @@ -22,7 +22,7 @@ from cryptography.primitives.block import BlockCipher, ciphers, modes class TestBlockCipher(object): - def test_instantiate_without_api(self): + def test_instantiate_without_backend(self): BlockCipher( ciphers.AES(binascii.unhexlify(b"0" * 32)), modes.CBC(binascii.unhexlify(b"0" * 32)) @@ -44,11 +44,11 @@ class TestBlockCipher(object): class TestBlockCipherContext(object): - def test_use_after_finalize(self, api): + def test_use_after_finalize(self, backend): cipher = BlockCipher( ciphers.AES(binascii.unhexlify(b"0" * 32)), modes.CBC(binascii.unhexlify(b"0" * 32)), - api + backend ) encryptor = cipher.encryptor() encryptor.update(b"a" * 16) @@ -65,11 +65,11 @@ class TestBlockCipherContext(object): with pytest.raises(ValueError): decryptor.finalize() - def test_unaligned_block_encryption(self, api): + def test_unaligned_block_encryption(self, backend): cipher = BlockCipher( ciphers.AES(binascii.unhexlify(b"0" * 32)), modes.ECB(), - api + backend ) encryptor = cipher.encryptor() ct = encryptor.update(b"a" * 15) |