/shabti/templates/authplus/+package+/tests/functional/test_login.py_tmpl

https://bitbucket.org/gawel/shabti · Unknown · 20 lines · 15 code · 5 blank · 0 comment · 0 complexity · cb3943a6de441f88dad23c56378adc6f MD5 · raw file

  1. # authplus/tests/functional/test_login
  2. from pylons import url
  3. from {{package}}.tests import *
  4. class TestLoginController(TestController):
  5. def test_index(self):
  6. """TestLoginController (authplus): check login page is presented"""
  7. response = self.app.get(url(controller='accounts', action='login'))
  8. assert 'action="/accounts/login"' in response
  9. def test_setup(self):
  10. """TestLoginController (authplus): check login page is presented"""
  11. response = self.app.get(url("/"))
  12. print(response)
  13. # assert 'Administrator login' in response
  14. assert '<span style="color:red">password="notset"</span>.<br/>' in response
  15. # --- Added by Shabti authplus template