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

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/p/t/ptah_crowd-0.1/ptah_crowd/tests/test_login.py   ptah_crowd(Download)
        self.assertEqual(len(errors), 2)
 
        form.handleLogin()
        self.assertIn('Please fix indicated errors.',
                      ptah.render_messages(request))
        form = login.LoginForm(None, request)
        form.update()
        res = form.handleLogin()
 
        self.assertIsInstance(res, HTTPFound)
        form = login.LoginForm(None, request)
        form.update()
        res = form.handleLogin()
 
        self.assertEqual(res.headers['location'],
        form = login.LoginForm(None, request)
        form.update()
        form.handleLogin()
 
        self.assertIn('You enter wrong login or password',
        form = login.LoginForm(None, request)
        form.update()
        form.handleLogin()
 
        self.assertIn('Account is not validated.',ptah.render_messages(request))