def test_resetpassword_required(self):
        from ptahcrowd.resetpassword import ResetPassword
        request = self.make_request(POST={'form.buttons.reset': 'Reset'})

        form = ResetPassword(None, request)
        form.update_form()

        msg = request.render_messages()
        self.assertIn("The system can't restore the password for this user.",
                      msg)
    def test_resetpassword_required(self):
        from ptahcrowd.resetpassword import ResetPassword

        request = self.make_request(POST={"form.buttons.reset": "Reset"})

        form = ResetPassword(None, request)
        form.update_form()

        msg = request.render_messages()
        self.assertIn("The system can't restore the password for this user.", msg)