aboutsummaryrefslogtreecommitdiff
path: root/python/tests/account_test.py
diff options
context:
space:
mode:
authorHubert Chathi <hubert@uhoreg.ca>2019-07-03 19:27:30 +0000
committerHubert Chathi <hubert@uhoreg.ca>2019-07-03 19:27:30 +0000
commitc463d8b55b7a91b651c2ac4e3e09a25fa0775240 (patch)
tree26fe2896be81759b9df5b2e8014240c62faf5496 /python/tests/account_test.py
parentaa0c9ab6b51d182cb78ab4cc75c81c0054765bde (diff)
parent5d7070d2f365b54ee40e481483f35352cdfe53f5 (diff)
Merge branch 'python/drop-hypothesis' into 'master'
tests: Drop hypothesis from the python tests. See merge request matrix-org/olm!5
Diffstat (limited to 'python/tests/account_test.py')
-rw-r--r--python/tests/account_test.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/python/tests/account_test.py b/python/tests/account_test.py
index 7ee6d2b..f3b71eb 100644
--- a/python/tests/account_test.py
+++ b/python/tests/account_test.py
@@ -1,8 +1,6 @@
from builtins import int
import pytest
-from hypothesis import given
-from hypothesis.strategies import text
from olm import Account, OlmAccountError, OlmVerifyError, ed25519_verify
from olm._compat import to_bytes
@@ -73,8 +71,8 @@ class TestClass(object):
alice = Account()
del alice
- @given(text())
- def test_valid_signature(self, message):
+ def test_valid_signature(self):
+ message = "It's a secret to everybody"
alice = Account()
signature = alice.sign(message)
@@ -85,8 +83,8 @@ class TestClass(object):
ed25519_verify(signing_key, message, signature)
- @given(text())
- def test_invalid_signature(self, message):
+ def test_invalid_signature(self):
+ message = "It's a secret to everybody"
alice = Account()
bob = Account()
@@ -99,8 +97,8 @@ class TestClass(object):
with pytest.raises(OlmVerifyError):
ed25519_verify(signing_key, message, signature)
- @given(text())
- def test_signature_verification_twice(self, message):
+ def test_signature_verification_twice(self):
+ message = "It's a secret to everybody"
alice = Account()
signature = alice.sign(message)