summaryrefslogtreecommitdiff
path: root/admin/benchmarks.py
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2013-04-09 13:50:04 -0400
committerEli Collins <elic@assurancetechnologies.com>2013-04-09 13:50:04 -0400
commit2dbabd30e3639bc8f382db1ecc69aada0a6c827d (patch)
tree774aabe6a02b37df0ac8a5aee0c96f247c041766 /admin/benchmarks.py
parent6e158b409ec52814ee4ae015daa13028806e21de (diff)
downloadpasslib-2dbabd30e3639bc8f382db1ecc69aada0a6c827d.tar.gz
style cleanups
Diffstat (limited to 'admin/benchmarks.py')
-rw-r--r--admin/benchmarks.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/admin/benchmarks.py b/admin/benchmarks.py
index dfe672a..5958dba 100644
--- a/admin/benchmarks.py
+++ b/admin/benchmarks.py
@@ -33,7 +33,7 @@ from passlib.utils.compat import u, print_, unicode, next_method_attr
# benchmarking support
#=============================================================================
class benchmark:
- "class to hold various benchmarking helpers"
+ """class to hold various benchmarking helpers"""
@classmethod
def constructor(cls, **defaults):
@@ -149,7 +149,7 @@ OTHER = u("setecastronomy")
#=============================================================================
@benchmark.constructor()
def test_context_from_path():
- "test speed of CryptContext.from_path()"
+ """test speed of CryptContext.from_path()"""
path = sample_config_1p
if CryptPolicy:
def helper():
@@ -161,7 +161,7 @@ def test_context_from_path():
@benchmark.constructor()
def test_context_update():
- "test speed of CryptContext.update()"
+ """test speed of CryptContext.update()"""
kwds = dict(
schemes = [ "sha512_crypt", "sha256_crypt", "md5_crypt",
"des_crypt", "unix_disabled" ],
@@ -180,7 +180,7 @@ def test_context_update():
@benchmark.constructor()
def test_context_init():
- "test speed of CryptContext() constructor"
+ """test speed of CryptContext() constructor"""
kwds = dict(
schemes=[BlankHandler, AnotherHandler],
default="another",
@@ -194,7 +194,7 @@ def test_context_init():
@benchmark.constructor()
def test_context_calls():
- "test speed of CryptContext password methods"
+ """test speed of CryptContext password methods"""
ctx = CryptContext(
schemes=[BlankHandler, AnotherHandler],
default="another",
@@ -214,7 +214,7 @@ def test_context_calls():
#=============================================================================
@benchmark.constructor()
def test_md5_crypt_builtin():
- "test test md5_crypt builtin backend"
+ """test test md5_crypt builtin backend"""
from passlib.hash import md5_crypt
md5_crypt.set_backend("builtin")
def helper():
@@ -225,7 +225,7 @@ def test_md5_crypt_builtin():
@benchmark.constructor()
def test_ldap_salted_md5():
- "test ldap_salted_md5"
+ """test ldap_salted_md5"""
from passlib.hash import ldap_salted_md5 as handler
def helper():
hash = handler.encrypt(SECRET, salt='....')
@@ -235,7 +235,7 @@ def test_ldap_salted_md5():
@benchmark.constructor()
def test_phpass():
- "test phpass"
+ """test phpass"""
from passlib.hash import phpass as handler
kwds = dict(salt='.'*8, rounds=16)
def helper():