diff options
author | Rodney Ewing <ewing.rj@gmail.com> | 2013-05-27 08:54:25 -0700 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-05-27 08:54:25 -0700 |
commit | 3b8c733b98533e6dd7612f071b672b19a97ecf1e (patch) | |
tree | d7cfc5abff81f1c24800819d57d80785357ec34e /mediagoblin/tests | |
parent | 3bcdc49088a9fe779b1b95fb1dc42d9ef0c4de00 (diff) | |
download | mediagoblin-3b8c733b98533e6dd7612f071b672b19a97ecf1e.tar.lz mediagoblin-3b8c733b98533e6dd7612f071b672b19a97ecf1e.tar.xz mediagoblin-3b8c733b98533e6dd7612f071b672b19a97ecf1e.zip |
no need for check_login with the new check_login_simple function
Diffstat (limited to 'mediagoblin/tests')
-rw-r--r-- | mediagoblin/tests/test_auth.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mediagoblin/tests/test_auth.py b/mediagoblin/tests/test_auth.py index ee916c43..8a828303 100644 --- a/mediagoblin/tests/test_auth.py +++ b/mediagoblin/tests/test_auth.py @@ -23,6 +23,7 @@ from mediagoblin.db.models import User from mediagoblin.tests.tools import get_app, fixture_add_user from mediagoblin.tools import template, mail from mediagoblin.auth.tools import AuthError +from mediagoblin.auth import tools as auth_tools from mediagoblin import auth @@ -404,8 +405,8 @@ def test_no_auth_true_no_auth_plugin_app(no_auth_true_no_auth_plugin_app): assert urlparse.urlsplit(response.location)[2] == '/' assert 'mediagoblin/root.html' in template.TEMPLATE_TEST_CONTEXT - ## Test check_login should return False - assert auth.check_login('test', 'simple') is False + ## Test check_login_simple should return None + assert auth_tools.check_login_simple('test', 'simple') is None # Try to visit the forgot password page template.clear_test_template_context() |