Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
Add test to check SECURITY_LOGIN_WITHOUT_CONFIRMATION feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Wright committed Dec 19, 2013
1 parent ce439b7 commit d88299f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/configured_tests.py
Expand Up @@ -352,6 +352,16 @@ def test_confirm_email_of_user_different_than_current_user(self):
self.assertIn(msg, r.data)
self.assertIn('Hello %s' % e2, r.data)

def test_login_unconfirmed_user_when_login_without_confirmation_is_true(self):
e = 'dude@lp.com'
p = 'password'
data = dict(email=e, password=p, password_confirm=p)
r = self._post('/register', data=data, follow_redirects=True)
self.assertIn(e, r.data)
self.client.get('/logout')
r = self.authenticate(email=e)
self.assertIn(e, r.data)


class RecoverableTests(SecurityTest):

Expand Down

0 comments on commit d88299f

Please sign in to comment.