Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(1)  |  Derive(0)  |  Import(2)

src/p/t/ptah_crowd-0.1/ptah_crowd/tests/test_resetpassword.py   ptah_crowd(Download)
    def test_resetpassword(self):
        from ptah_crowd.resetpassword import ResetPassword
        from ptah_crowd.resetpassword import ResetPasswordTemplate
        from ptah_crowd.provider import CrowdUser, CrowdFactory
 
    def test_resetpassword_template(self):
        from ptah_crowd.resetpassword import ResetPasswordTemplate
        from ptah_crowd.provider import CrowdUser, CrowdFactory
 
        user = CrowdUser(title='name', login='login', email='email')
        passcode = ptah.pwd_tool.generate_passcode(user)
 
        template = ResetPasswordTemplate(user, request)
        template.passcode = passcode