/shabti/templates/authplus/+package+/tests/functional/test_login.py_tmpl
Unknown | 20 lines | 15 code | 5 blank | 0 comment | 0 complexity | cb3943a6de441f88dad23c56378adc6f MD5 | raw file
- # authplus/tests/functional/test_login
- from pylons import url
- from {{package}}.tests import *
- class TestLoginController(TestController):
- def test_index(self):
- """TestLoginController (authplus): check login page is presented"""
- response = self.app.get(url(controller='accounts', action='login'))
- assert 'action="/accounts/login"' in response
-
- def test_setup(self):
- """TestLoginController (authplus): check login page is presented"""
- response = self.app.get(url("/"))
- print(response)
- # assert 'Administrator login' in response
- assert '<span style="color:red">password="notset"</span>.<br/>' in response
-
- # --- Added by Shabti authplus template
-