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

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

src/p/t/ptahcrowd-HEAD/ptahcrowd/tests/test_login.py   ptahcrowd(Download)
    def test_logout_anon(self):
        from ptahcrowd import login
 
        request = self.make_request()
        res = login.logout(request)
        ptah.auth_service.set_userid(uri)
 
        res = login.logout(request)
        self.assertIsInstance(res, HTTPFound)
        self.assertIsNone(ptah.auth_service.get_userid())

src/p/t/ptahcrowd-0.2/ptahcrowd/tests/test_login.py   ptahcrowd(Download)
    def test_logout_anon(self):
        from ptahcrowd import login
 
        request = self.make_request()
        res = login.logout(request)
        ptah.auth_service.set_userid(uri)
 
        res = login.logout(request)
        self.assertIsInstance(res, HTTPFound)
        self.assertIsNone(ptah.auth_service.get_userid())