def test_page_failure(self):
from dbas.views import main_settings as d
request = testing.DummyRequest(params={
'form.passwordchange.submitted': '',
'passwordold': 'tobia',
'password': 'tobias',
'passwordconfirm': 'tobias'
})
response = d(request)
verify_dictionary_of_view(self, response)
# check settings
self.assertTrue(len(response['settings']['passwordold']) != 0)
self.assertTrue(len(response['settings']['password']) != 0)
self.assertTrue(len(response['settings']['passwordconfirm']) != 0)
评论列表
文章目录