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

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

src/p/t/ptahcrowd-0.2/ptahcrowd/tests/test_forbidden.py   ptahcrowd(Download)
    def test_forbidden(self):
        from ptahcrowd.forbidden import Forbidden
 
        class Context(object):
            """ """
        request.root = Context()
 
        excview = Forbidden(HTTPForbidden(), request)
        excview.update()
 
            'http://example.com/login.html?came_from=http%3A%2F%2Fexample.com')
 
        excview = Forbidden(HTTPForbidden(), request)
        res = excview()
        self.assertEqual(res.status, '302 Found')
 
    def test_forbidden_default_root(self):
        from ptahcrowd.forbidden import Forbidden

src/p/t/ptahcrowd-HEAD/ptahcrowd/tests/test_forbidden.py   ptahcrowd(Download)
    def test_forbidden(self):
        from ptahcrowd.forbidden import Forbidden
 
        class Context(object):
            """ """
        request.root = Context()
 
        excview = Forbidden(HTTPForbidden(), request)
        excview.update()
 
            'http://example.com/login.html?came_from=http%3A%2F%2Fexample.com')
 
        excview = Forbidden(HTTPForbidden(), request)
        res = excview()
        self.assertEqual(res.status, '302 Found')
 
    def test_forbidden_default_root(self):
        from ptahcrowd.forbidden import Forbidden