test_view_main_settings.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:dbas 作者: hhucn 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号