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

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

src/p/t/ptah_crowd-0.1/ptah_crowd/tests/test_login.py   ptah_crowd(Download)
    def test_logout_anon(self):
        from ptah_crowd import login
 
        request = DummyRequest()
        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())