Exemplo n.º 1
0
 def test_views(self):
     view = UserView(context=self.root, request=self.request)
     view.__configuration__ = lambda: view_configuration
     view.create()
     view.update()
     view.updatepass()
     view.resetpass()
     view.updatemail1()
     view.updatemail2()
     view.contact()
     view.login()
     view.logoutlink()
     self.assertRaises(HTTPFound, view.logout)
     view.logouturl()
     view.closefirstrun()
     view.remove()
Exemplo n.º 2
0
 def test_views(self):
     view = UserView(context=self.root, request=self.request)
     view.__configuration__ = lambda: view_configuration
     view.create()
     view.update()
     view.updatepass()
     view.resetpass()
     view.updatemail1()
     view.updatemail2()
     view.contact()
     view.login()
     view.logoutlink()
     self.assertRaises(HTTPFound, view.logout)
     view.logouturl()
     view.closefirstrun()
     view.remove()
Exemplo n.º 3
0
    def test_templates(self):    
        view = UserView(context=self.root, request=self.request)
        view.__configuration__ = lambda: view_configuration
        vrender = {"context":self.root, "view":view, "request": self.request}
        
        values = view.login()
        values.update(vrender)
        render("nive_userdb.userview:loginpage.pt", values)
        
        values = view.updatepass()
        values.update(vrender)
        render("nive_userdb.userview:form.pt", values)

        values = view.updatemail1()
        values.update(vrender)
        render("nive_userdb.userview:form.pt", values)

        values = view.updatemail2()
        values.update(vrender)
        render("nive_userdb.userview:form.pt", values)

        values = view.resetpass()
        values.update(vrender)
        render("nive_userdb.userview:form.pt", values)
        
        values = view.create()
        values.update(vrender)
        render("nive_userdb.userview:signup.pt", values)

        values = view.update()
        values.update(vrender)
        render("nive_userdb.userview:update.pt", values)

        values = view.contact()
        values.update(vrender)
        render("nive_userdb.userview:form.pt", values)

        values = view.remove()
        values.update(vrender)
        render("nive_userdb.userview:remove.pt", values)

        render("nive_userdb.userview:main.pt", values)
Exemplo n.º 4
0
    def test_templates(self):
        view = UserView(context=self.root, request=self.request)
        view.__configuration__ = lambda: view_configuration
        vrender = {"context": self.root, "view": view, "request": self.request}

        values = view.login()
        values.update(vrender)
        render("nive_userdb.userview:loginpage.pt", values)

        values = view.updatepass()
        values.update(vrender)
        render("nive_userdb.userview:form.pt", values)

        values = view.updatemail1()
        values.update(vrender)
        render("nive_userdb.userview:form.pt", values)

        values = view.updatemail2()
        values.update(vrender)
        render("nive_userdb.userview:form.pt", values)

        values = view.resetpass()
        values.update(vrender)
        render("nive_userdb.userview:form.pt", values)

        values = view.create()
        values.update(vrender)
        render("nive_userdb.userview:signup.pt", values)

        values = view.update()
        values.update(vrender)
        render("nive_userdb.userview:update.pt", values)

        values = view.contact()
        values.update(vrender)
        render("nive_userdb.userview:form.pt", values)

        values = view.remove()
        values.update(vrender)
        render("nive_userdb.userview:remove.pt", values)

        render("nive_userdb.userview:main.pt", values)