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

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

src/p/t/ptahcrowd-0.2/ptahcrowd/tests/test_join.py   ptahcrowd(Download)
    def test_join_auth(self):
        from ptahcrowd.registration import Registration
 
        request = self.make_request()
        ptah.auth_service.set_userid('test')
 
        form = Registration(None, request)
    def test_join_disabled(self):
        import ptahcrowd
        from ptahcrowd.registration import Registration
 
        cfg = ptah.get_settings(ptahcrowd.CFG_ID_CROWD)
        cfg['join'] = False
 
        request = self.make_request()
        form = Registration(None, request)
    def test_join_error(self):
        from ptahcrowd.provider import CrowdUser
        from ptahcrowd.registration import Registration
 
        user = CrowdUser(name='name', login='login', email='email')

src/p/t/ptahcrowd-HEAD/ptahcrowd/tests/test_join.py   ptahcrowd(Download)
    def test_join_auth(self):
        from ptahcrowd.registration import Registration
 
        request = self.make_request()
        ptah.auth_service.set_userid('test')
 
        form = Registration(None, request)
    def test_join_disabled(self):
        import ptahcrowd
        from ptahcrowd.registration import Registration
 
        cfg = ptah.get_settings(ptahcrowd.CFG_ID_CROWD)
        cfg['join'] = False
 
        request = self.make_request()
        form = Registration(None, request)
    def test_join_error(self):
        from ptahcrowd.provider import CrowdUser
        from ptahcrowd.registration import Registration
 
        user = CrowdUser(name='name', login='login', email='email')