Permalink
Browse files

Add test to check SECURITY_LOGIN_WITHOUT_CONFIRMATION feature

  • Loading branch information...
1 parent ce439b7 commit d88299fc9b4a407c873e36bc21fcb02444050a02 @mattupstate committed Dec 19, 2013
Showing with 10 additions and 0 deletions.
  1. +10 −0 tests/configured_tests.py
View
@@ -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):

0 comments on commit d88299f

Please sign in to comment.