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

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

src/p/t/ptahcrowd-0.2/ptahcrowd/tests/test_login.py   ptahcrowd(Download)
        cfg['join-url'] = 'http://test/login.html'
 
        form = login.LoginForm(None, request)
        form.update()
        self.assertFalse(form.join)
        cfg['join-url'] = ''
 
        form = login.LoginForm(None, request)
        form.update()
        self.assertTrue(form.join)
        request = self.make_request()
 
        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.login_handler()
        request.environ['HTTP_HOST'] = 'example.com'
 
        form = login.LoginForm(None, request)
        form.update()
        res = form.login_handler()

src/p/t/ptahcrowd-HEAD/ptahcrowd/tests/test_login.py   ptahcrowd(Download)
        cfg['join-url'] = 'http://test/login.html'
 
        form = login.LoginForm(None, request)
        form.update()
        self.assertFalse(form.join)
        cfg['join-url'] = ''
 
        form = login.LoginForm(None, request)
        form.update()
        self.assertTrue(form.join)
        request = self.make_request()
 
        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.login_handler()
        request.environ['HTTP_HOST'] = 'example.com'
 
        form = login.LoginForm(None, request)
        form.update()
        res = form.login_handler()