diff options
author | David Reid <dreid@dreid.org> | 2013-11-25 09:14:02 -0800 |
---|---|---|
committer | David Reid <dreid@dreid.org> | 2013-11-25 09:14:02 -0800 |
commit | 9a1b0c75518e6eb2b4c0cb8fd35d94dad124ccd6 (patch) | |
tree | fcf18c36427b50aa213e171ae11be69541ea3658 /tests/hazmat/primitives/test_hashes.py | |
parent | cf3ad610b2530af2a56f99197ae85718fa90f439 (diff) | |
download | cryptography-9a1b0c75518e6eb2b4c0cb8fd35d94dad124ccd6.tar.gz cryptography-9a1b0c75518e6eb2b4c0cb8fd35d94dad124ccd6.tar.bz2 cryptography-9a1b0c75518e6eb2b4c0cb8fd35d94dad124ccd6.zip |
Use keyword argument forms everywhere.
Diffstat (limited to 'tests/hazmat/primitives/test_hashes.py')
-rw-r--r-- | tests/hazmat/primitives/test_hashes.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/hazmat/primitives/test_hashes.py b/tests/hazmat/primitives/test_hashes.py index 321082f6..c8719b0a 100644 --- a/tests/hazmat/primitives/test_hashes.py +++ b/tests/hazmat/primitives/test_hashes.py @@ -27,7 +27,7 @@ from .utils import generate_base_hash_test class TestHashContext(object): def test_hash_reject_unicode(self, backend): - m = hashes.Hash(hashes.SHA1(), backend) + m = hashes.Hash(hashes.SHA1(), backend=backend) with pytest.raises(TypeError): m.update(six.u("\u00FC")) @@ -35,16 +35,16 @@ class TestHashContext(object): pretend_backend = pretend.stub() copied_ctx = pretend.stub() pretend_ctx = pretend.stub(copy=lambda: copied_ctx) - h = hashes.Hash(hashes.SHA1(), pretend_backend, ctx=pretend_ctx) + h = hashes.Hash(hashes.SHA1(), backend=pretend_backend, ctx=pretend_ctx) assert h._backend is pretend_backend assert h.copy()._backend is h._backend def test_hash_algorithm_instance(self, backend): with pytest.raises(TypeError): - hashes.Hash(hashes.SHA1, backend) + hashes.Hash(hashes.SHA1, backend=backend) def test_raises_after_finalize(self, backend): - h = hashes.Hash(hashes.SHA1(), backend) + h = hashes.Hash(hashes.SHA1(), backend=backend) h.finalize() with pytest.raises(AlreadyFinalized): |