aboutsummaryrefslogtreecommitdiffstats
path: root/tests/primitives/test_block.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2013-10-22 20:13:06 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2013-10-22 20:15:49 -0500
commitdb37d0e29d6a7ff41e5c312e7ad1f904c0bc310e (patch)
tree8d2ba89bd84b3aa2986fea7c51405fed4d10b237 /tests/primitives/test_block.py
parent6ce102ac57a283f881d76e2e926a389f8a05b19b (diff)
downloadcryptography-db37d0e29d6a7ff41e5c312e7ad1f904c0bc310e.tar.gz
cryptography-db37d0e29d6a7ff41e5c312e7ad1f904c0bc310e.tar.bz2
cryptography-db37d0e29d6a7ff41e5c312e7ad1f904c0bc310e.zip
the great api -> backend rename
Diffstat (limited to 'tests/primitives/test_block.py')
-rw-r--r--tests/primitives/test_block.py10
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)