aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives
diff options
context:
space:
mode:
authorSteven Buss <steven.buss@gmail.com>2015-04-13 13:35:50 -0400
committerSteven Buss <steven.buss@gmail.com>2015-04-13 18:20:47 -0400
commite079c554e7b3506dfd8be56b2fd20336c79ce7a0 (patch)
tree3bd7751ae0bed4d2e33042e8979d8f0e4b832980 /tests/hazmat/primitives
parentb6c8faa1a473447b9e91ab700a6f9b0af0468432 (diff)
downloadcryptography-e079c554e7b3506dfd8be56b2fd20336c79ce7a0.tar.gz
cryptography-e079c554e7b3506dfd8be56b2fd20336c79ce7a0.tar.bz2
cryptography-e079c554e7b3506dfd8be56b2fd20336c79ce7a0.zip
Move cryptography.exceptions.InvalidToken to cryptography.hazmat.primitives.twofactor
Diffstat (limited to 'tests/hazmat/primitives')
-rw-r--r--tests/hazmat/primitives/twofactor/test_hotp.py3
-rw-r--r--tests/hazmat/primitives/twofactor/test_totp.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/hazmat/primitives/twofactor/test_hotp.py b/tests/hazmat/primitives/twofactor/test_hotp.py
index a76aa6e3..a5d1c284 100644
--- a/tests/hazmat/primitives/twofactor/test_hotp.py
+++ b/tests/hazmat/primitives/twofactor/test_hotp.py
@@ -8,10 +8,11 @@ import os
import pytest
-from cryptography.exceptions import InvalidToken, _Reasons
+from cryptography.exceptions import _Reasons
from cryptography.hazmat.backends.interfaces import HMACBackend
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.hashes import MD5, SHA1
+from cryptography.hazmat.primitives.twofactor import InvalidToken
from cryptography.hazmat.primitives.twofactor.hotp import HOTP
from ....utils import (
diff --git a/tests/hazmat/primitives/twofactor/test_totp.py b/tests/hazmat/primitives/twofactor/test_totp.py
index 05321089..6039983e 100644
--- a/tests/hazmat/primitives/twofactor/test_totp.py
+++ b/tests/hazmat/primitives/twofactor/test_totp.py
@@ -6,9 +6,10 @@ from __future__ import absolute_import, division, print_function
import pytest
-from cryptography.exceptions import InvalidToken, _Reasons
+from cryptography.exceptions import _Reasons
from cryptography.hazmat.backends.interfaces import HMACBackend
from cryptography.hazmat.primitives import hashes
+from cryptography.hazmat.primitives.twofactor import InvalidToken
from cryptography.hazmat.primitives.twofactor.totp import TOTP
from ....utils import (