aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTerry Chia <terrycwk1994@gmail.com>2015-09-30 19:13:14 +0800
committerTerry Chia <terrycwk1994@gmail.com>2015-09-30 19:13:14 +0800
commit36a787ff216dff16e49c3cbc8895515588697337 (patch)
treece9d712232c497c00c2131d60b7e6d4018528717 /tests
parent3d7f8d1d6cf268f5c0c482c8d1cce7ec773a7030 (diff)
downloadcryptography-36a787ff216dff16e49c3cbc8895515588697337.tar.gz
cryptography-36a787ff216dff16e49c3cbc8895515588697337.tar.bz2
cryptography-36a787ff216dff16e49c3cbc8895515588697337.zip
Address comments.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_with_hypothesis.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_with_hypothesis.py b/tests/test_with_hypothesis.py
index 31dfa04c..5a181216 100644
--- a/tests/test_with_hypothesis.py
+++ b/tests/test_with_hypothesis.py
@@ -1,3 +1,4 @@
+from hypothesis import given
from hypothesis.strategies import binary
import pytest
@@ -8,7 +9,7 @@ from cryptography.fernet import Fernet
hypothesis = pytest.importorskip("hypothesis")
-@hypothesis.given(binary())
+@given(binary())
def test_fernet(data):
f = Fernet(Fernet.generate_key())
ct = f.encrypt(data)