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

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

src/p/t/ptah_crowd-0.1/ptah_crowd/tests/test_login.py   ptah_crowd(Download)
        cfg['joinurl'] = 'http://test/login.html'
 
        form = login.LoginForm(None, request)
        form.update()
        self.assertFalse(form.join)
        cfg['joinurl'] = ''
 
        form = login.LoginForm(None, request)
        form.update()
        self.assertTrue(form.join)
        request = DummyRequest()
 
        form = login.LoginForm(None, request)
        form.update()
        data, errors = form.extract()
        request.environ['HTTP_HOST'] = 'example.com'
 
        form = login.LoginForm(None, request)
        form.update()
        res = form.handleLogin()
        request.environ['HTTP_HOST'] = 'example.com'
 
        form = login.LoginForm(None, request)
        form.update()
        res = form.handleLogin()