aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat
diff options
context:
space:
mode:
authorJiangge Zhang <tonyseek@gmail.com>2015-06-03 17:30:11 +0800
committerJiangge Zhang <tonyseek@gmail.com>2015-06-03 17:39:59 +0800
commitd4e0a839ef676a2ed05140f98ef3630deb0fdd61 (patch)
tree4786265848ce18dbda22f6daa3b3a28e6c48d561 /tests/hazmat
parente9f8eb9af0c4f42dd4e68ae05580f77dc352aaf4 (diff)
downloadcryptography-d4e0a839ef676a2ed05140f98ef3630deb0fdd61.tar.gz
cryptography-d4e0a839ef676a2ed05140f98ef3630deb0fdd61.tar.bz2
cryptography-d4e0a839ef676a2ed05140f98ef3630deb0fdd61.zip
Remove a default argument and rename a private function.
Diffstat (limited to 'tests/hazmat')
-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")