aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/twofactor/test_totp.py
diff options
context:
space:
mode:
authorAyrx <terrycwk1994@gmail.com>2014-03-15 22:44:03 +0800
committerAyrx <terrycwk1994@gmail.com>2014-03-15 22:44:03 +0800
commita8d6b047b59794037a7be8fbfce60eedbedc100d (patch)
treeeb71a2f274bd80b0208e1cfdff03b57671f72561 /tests/hazmat/primitives/twofactor/test_totp.py
parent30e574e8f0759a747f77e0e45fa5dbefeb44f3f0 (diff)
downloadcryptography-a8d6b047b59794037a7be8fbfce60eedbedc100d.tar.gz
cryptography-a8d6b047b59794037a7be8fbfce60eedbedc100d.tar.bz2
cryptography-a8d6b047b59794037a7be8fbfce60eedbedc100d.zip
Removed pretend stub
Diffstat (limited to 'tests/hazmat/primitives/twofactor/test_totp.py')
-rw-r--r--tests/hazmat/primitives/twofactor/test_totp.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/hazmat/primitives/twofactor/test_totp.py b/tests/hazmat/primitives/twofactor/test_totp.py
index 776a9f2a..294c19ab 100644
--- a/tests/hazmat/primitives/twofactor/test_totp.py
+++ b/tests/hazmat/primitives/twofactor/test_totp.py
@@ -13,8 +13,6 @@
from __future__ import absolute_import, division, print_function
-import pretend
-
import pytest
from cryptography.exceptions import InvalidToken, UnsupportedInterface
@@ -136,7 +134,7 @@ class TestTOTP(object):
def test_invalid_backend():
secret = b"12345678901234567890"
- pretend_backend = pretend.stub()
+ pretend_backend = object()
with pytest.raises(UnsupportedInterface):
TOTP(secret, 8, hashes.SHA1(), 30, pretend_backend)