From e2a6089587f68b0a2e2f60c8d8c57c80c977511c Mon Sep 17 00:00:00 2001 From: Brook Elgie Date: Tue, 18 Nov 2014 16:44:51 +0000 Subject: [PATCH] [#1661] Remove unused test method --- ckan/tests/functional/test_user.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/ckan/tests/functional/test_user.py b/ckan/tests/functional/test_user.py index 53a3d9ae881..cd51bae8be7 100644 --- a/ckan/tests/functional/test_user.py +++ b/ckan/tests/functional/test_user.py @@ -127,26 +127,6 @@ def test_user_edit_not_logged_in(self): offset = url_for(controller='user', action='edit', id=username) res = self.app.get(offset, status=302) - def _login_openid(self, res): - # this requires a valid account on some openid provider - # (or for us to stub an open_id provider ...) - assert 'Please Sign In' in res - username = u'http://okfntest.myopenid.com' - fv = res.forms['user-login'] - fv['passurl'] = username - web.submit() - web.code(200) - assert 'You must sign in to authenticate to' in res - assert username in res - fv['password'] = u'okfntest' - res = fv.submit() - assert 'Please carefully verify whether you wish to trust' in res - fv = res.forms[0] - res = fv.submit('allow_once') - # at this point we should return - # but for some reason this does not work ... - return res - def test_perform_reset_user_password_link_key_incorrect(self): CreateTestData.create_user(name='jack', password='test1') # Make up a key - i.e. trying to hack this