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

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

src/p/t/ptahcrowd-HEAD/ptahcrowd/tests/test_login.py   ptahcrowd(Download)
        self.assertEqual(len(errors), 2)
 
        form.login_handler()
        self.assertIn('Please fix indicated errors.',
                      request.render_messages())
        form = login.LoginForm(None, request)
        form.update()
        res = form.login_handler()
 
        self.assertIsInstance(res, HTTPFound)
        form = login.LoginForm(None, request)
        form.update()
        res = form.login_handler()
 
        self.assertEqual(res.headers['location'],
        form = login.LoginForm(None, request)
        form.update()
        form.login_handler()
 
        self.assertIn("You have entered the wrong login or password.",
        form = login.LoginForm(None, request)
        form.update()
        form.login_handler()
 
        self.assertIn('Account is not validated.',request.render_messages())

src/p/t/ptahcrowd-0.2/ptahcrowd/tests/test_login.py   ptahcrowd(Download)
        self.assertEqual(len(errors), 2)
 
        form.login_handler()
        self.assertIn('Please fix indicated errors.',
                      request.render_messages())
        form = login.LoginForm(None, request)
        form.update()
        res = form.login_handler()
 
        self.assertIsInstance(res, HTTPFound)
        form = login.LoginForm(None, request)
        form.update()
        res = form.login_handler()
 
        self.assertEqual(res.headers['location'],
        form = login.LoginForm(None, request)
        form.update()
        form.login_handler()
 
        self.assertIn("You have entered the wrong login or password.",
        form = login.LoginForm(None, request)
        form.update()
        form.login_handler()
 
        self.assertIn('Account is not validated.',request.render_messages())