aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/twofactor
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hazmat/primitives/twofactor')
-rw-r--r--tests/hazmat/primitives/twofactor/test_hotp.py4
-rw-r--r--tests/hazmat/primitives/twofactor/test_totp.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/hazmat/primitives/twofactor/test_hotp.py b/tests/hazmat/primitives/twofactor/test_hotp.py
index 3359dac2..ab5f93c5 100644
--- a/tests/hazmat/primitives/twofactor/test_hotp.py
+++ b/tests/hazmat/primitives/twofactor/test_hotp.py
@@ -96,11 +96,11 @@ class TestHOTP(object):
secret = b"12345678901234567890"
hotp = HOTP(secret, 6, SHA1(), backend)
- assert hotp.get_provisioning_uri("Alice Smith", 1) == (
+ assert hotp.get_provisioning_uri("Alice Smith", 1, None) == (
"otpauth://hotp/Alice%20Smith?digits=6&secret=GEZDGNBV"
"GY3TQOJQGEZDGNBVGY3TQOJQ&algorithm=SHA1&counter=1")
- assert hotp.get_provisioning_uri("Alice Smith", 1, issuer='Foo') == (
+ assert hotp.get_provisioning_uri("Alice Smith", 1, 'Foo') == (
"otpauth://hotp/Foo:Alice%20Smith?digits=6&secret=GEZD"
"GNBVGY3TQOJQGEZDGNBVGY3TQOJQ&algorithm=SHA1&issuer=Foo"
"&counter=1")
diff --git a/tests/hazmat/primitives/twofactor/test_totp.py b/tests/hazmat/primitives/twofactor/test_totp.py
index cd841ba6..95829713 100644
--- a/tests/hazmat/primitives/twofactor/test_totp.py
+++ b/tests/hazmat/primitives/twofactor/test_totp.py
@@ -130,7 +130,7 @@ class TestTOTP(object):
secret = b"12345678901234567890"
totp = TOTP(secret, 6, hashes.SHA1(), 30, backend=backend)
- assert totp.get_provisioning_uri("Alice Smith") == (
+ assert totp.get_provisioning_uri("Alice Smith", None) == (
"otpauth://totp/Alice%20Smith?digits=6&secret=GEZDGNBVG"
"Y3TQOJQGEZDGNBVGY3TQOJQ&algorithm=SHA1&period=30")