Commit 6f1732ea authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

astakos: Additional login form test

test empty POST dict form submition
parent 0bf0af5b
...@@ -384,6 +384,9 @@ class TestLocal(TestCase): ...@@ -384,6 +384,9 @@ class TestLocal(TestCase):
r = self.client.post(ui_url('local'), credentials, follow=True) r = self.client.post(ui_url('local'), credentials, follow=True)
fields = r.context['login_form'].fields.keyOrder fields = r.context['login_form'].fields.keyOrder
self.assertTrue('recaptcha_challenge_field' in fields) self.assertTrue('recaptcha_challenge_field' in fields)
r = self.client.post(ui_url('local'), follow=True)
fields = r.context['login_form'].fields.keyOrder
self.assertTrue('recaptcha_challenge_field' in fields)
def test_no_moderation(self): def test_no_moderation(self):
# disable moderation # disable moderation
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment