diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-10-22 14:28:24 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2013-10-22 14:28:24 -0500 |
commit | 0b2042b6269bae9869a6ecbde586cec8158f4553 (patch) | |
tree | 5c0a8acf4cb118332fe3a9f231bdcdae263e08ed /tests | |
parent | 9949702886c815277bb7483b1a0d429a2a7ffd7c (diff) | |
download | cryptography-0b2042b6269bae9869a6ecbde586cec8158f4553.tar.gz cryptography-0b2042b6269bae9869a6ecbde586cec8158f4553.tar.bz2 cryptography-0b2042b6269bae9869a6ecbde586cec8158f4553.zip |
fixes #148 + test case
Diffstat (limited to 'tests')
-rw-r--r-- | tests/primitives/test_hashes.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/primitives/test_hashes.py b/tests/primitives/test_hashes.py index 805d992b..03de8916 100644 --- a/tests/primitives/test_hashes.py +++ b/tests/primitives/test_hashes.py @@ -28,6 +28,10 @@ class TestBaseHash(object): with pytest.raises(TypeError): m.update(six.u("\u00FC")) + def test_base_hash_hexdigest_string_type(self, api): + m = hashes.SHA1(api=api, data=b"") + assert isinstance(m.hexdigest(), str) + class TestSHA1(object): test_SHA1 = generate_base_hash_test( |