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

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

src/f/t/ftw.bridge.proxy-1.1.1/ftw/bridge/proxy/tests/test_proxy_view.py   ftw.bridge.proxy(Download)
        view = ProxyView(request)
        with self.assertRaises(Forbidden):
            view.__call__()
 
    def test_proxy_view(self):
 
        view = ProxyView(request)
        response = view.__call__()
        self.assertTrue(IResponse.providedBy(response))
        self.assertEqual(response.body, 'proxied response')
 
        view = ProxyView(request)
        response = view.__call__()
        self.assertEqual(response.body, 'proxied response')
        self.assertEqual(