summaryrefslogtreecommitdiff
path: root/passlib/tests/utils.py
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2012-01-18 20:36:38 -0500
committerEli Collins <elic@assurancetechnologies.com>2012-01-18 20:36:38 -0500
commit6f816a3d7f1f3a394fedcc0aa410792a95b9ece6 (patch)
tree66308581e5b36a60198cd8a0c8b8916ba271eda5 /passlib/tests/utils.py
parenta4a4d20ec8245f0e2763d08e6f00acbe343c854d (diff)
downloadpasslib-6f816a3d7f1f3a394fedcc0aa410792a95b9ece6.tar.gz
split exceptions/warnings to separate module; added some additional warning classes to make filtering easier
Diffstat (limited to 'passlib/tests/utils.py')
-rw-r--r--passlib/tests/utils.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/passlib/tests/utils.py b/passlib/tests/utils.py
index 85c9ea0..fc53edc 100644
--- a/passlib/tests/utils.py
+++ b/passlib/tests/utils.py
@@ -30,9 +30,10 @@ if ut_version < 2:
#used to provide replacement skipTest() method
from nose.plugins.skip import SkipTest
#pkg
+from passlib.exc import MissingBackendError
import passlib.registry as registry
-from passlib.utils import has_rounds_info, has_salt_info, MissingBackendError,\
- rounds_cost_values, classproperty
+from passlib.utils import has_rounds_info, has_salt_info, rounds_cost_values, \
+ classproperty
from passlib.utils.compat import b, bytes, iteritems, irange, callable, \
sb_types, exc_err, u, unicode
import passlib.utils.handlers as uh
@@ -617,7 +618,8 @@ class HandlerCase(TestCase):
(not mx_set or cls.min_salt_size < cls.max_salt_size):
#NOTE: for now, only bothering to issue warning if default_salt_size isn't maxed out
if (not mx_set or cls.default_salt_size < cls.max_salt_size):
- warn("%s: hash handler supports range of salt sizes, but doesn't offer 'salt_size' setting" % (cls.name,))
+ warn("%s: hash handler supports range of salt sizes, "
+ "but doesn't offer 'salt_size' setting" % (cls.name,))
#check salt_chars & default_salt_chars
if cls.salt_chars: