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

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

src/f/t/ftw.bridge.proxy-1.1.1/ftw/bridge/proxy/tests/test_manage_view.py   ftw.bridge.proxy(Download)
from ftw.bridge.proxy.testing import PYRAMID_LAYER
from ftw.bridge.proxy.views import ManageView
from pyramid.httpexceptions import HTTPFound
from pyramid.httpexceptions import HTTPUnauthorized
from pyramid.testing import DummyRequest
    def test_view_is_protected(self):
        request = DummyRequest()
        view = ManageView(request)
        with self.assertRaises(HTTPUnauthorized):
    def test_view_lists_clients(self):
        request = DummyRequest(headers=AUTH_HEADERS)
        view = ManageView(request)
        html = view().body