summaryrefslogtreecommitdiff
path: root/passlib/tests
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2011-12-28 17:48:13 -0500
committerEli Collins <elic@assurancetechnologies.com>2011-12-28 17:48:13 -0500
commit333c8a1466ff596abb8c1666cc35915ac945ab8f (patch)
treec30dacded473158852683d6d259c59488876dc53 /passlib/tests
parentd770fdd81801139e8097ed9747620af3f5746094 (diff)
downloadpasslib-333c8a1466ff596abb8c1666cc35915ac945ab8f.tar.gz
renamed test_drivers.py -> test_handlers.py to match name of module its testing
Diffstat (limited to 'passlib/tests')
-rw-r--r--passlib/tests/test_ext_django.py16
-rw-r--r--passlib/tests/test_handlers.py (renamed from passlib/tests/test_drivers.py)0
-rw-r--r--passlib/tests/utils.py2
3 files changed, 9 insertions, 9 deletions
diff --git a/passlib/tests/test_ext_django.py b/passlib/tests/test_ext_django.py
index 008e397..a1ad247 100644
--- a/passlib/tests/test_ext_django.py
+++ b/passlib/tests/test_ext_django.py
@@ -14,7 +14,7 @@ from passlib.apps import django_context
from passlib.ext.django import utils
from passlib.hash import sha256_crypt
from passlib.tests.utils import TestCase, unittest, ut_version, catch_warnings
-import passlib.tests.test_drivers as td
+import passlib.tests.test_handlers as td
from passlib.utils.compat import iteritems, get_method_function, unicode
from passlib.registry import get_crypt_handler
#module
@@ -412,17 +412,17 @@ PatchTest = skipUnlessDjango(PatchTest)
#=========================================================
django_hash_tests = [
- td.HexMd5Test,
- td.DjangoDesCryptTest,
- td.DjangoSaltedMd5Test,
- td.DjangoSaltedSha1Test,
+ th.HexMd5Test,
+ th.DjangoDesCryptTest,
+ th.DjangoSaltedMd5Test,
+ th.DjangoSaltedSha1Test,
]
-default_hash_tests = django_hash_tests + [ td.Builtin_SHA512CryptTest \
- or td.OsCrypt_SHA512CryptTest ]
+default_hash_tests = django_hash_tests + [ th.Builtin_SHA512CryptTest \
+ or th.OsCrypt_SHA512CryptTest ]
if has_django0:
- django_hash_tests.remove(td.DjangoDesCryptTest)
+ django_hash_tests.remove(th.DjangoDesCryptTest)
class PluginTest(TestCase):
"test django plugin via settings"
diff --git a/passlib/tests/test_drivers.py b/passlib/tests/test_handlers.py
index 5dc8d4f..5dc8d4f 100644
--- a/passlib/tests/test_drivers.py
+++ b/passlib/tests/test_handlers.py
diff --git a/passlib/tests/utils.py b/passlib/tests/utils.py
index 4e5f2fb..c0a9eae 100644
--- a/passlib/tests/utils.py
+++ b/passlib/tests/utils.py
@@ -1080,7 +1080,7 @@ def _has_other_backends(handler, ignore):
return name
return None
-def create_backend_case(base, name, module="passlib.tests.test_drivers"):
+def create_backend_case(base, name, module="passlib.tests.test_handlers"):
"create a test case for specific backend of a multi-backend handler"
#get handler, figure out if backend should be tested
handler = base.handler