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

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

src/f/t/ftw.bridge.client-1.0.8/ftw/bridge/client/tests/test_favorite.py   ftw.bridge.client(Download)
                             data={'title': 'The page with uml\xc3\xa4uts',
                                   'url': favorite_url}).result(
            self._create_response(raw='OK'))
 
        self.replay()
    def test_status_message_on_success(self):
        self._expect_request().result(self._create_response(raw='OK'))
 
        self.replay()
        view = getMultiAdapter((self.page, self.request),
    def test_redirects_back(self):
        self._expect_request().result(self._create_response(raw='OK'))
 
        self.replay()
        view = getMultiAdapter((self.page, self.request),
    def test_error_status_message(self):
        self._expect_request().result(
            self._create_response(status_code=500, raw='Error'))
        self.replay()
 
    def test_error_redirect(self):
        self._expect_request().result(
            self._create_response(status_code=500, raw='Error'))
 
        self.replay()

src/f/t/ftw.bridge.client-1.0.8/ftw/bridge/client/tests/test_watcher_ajax_view.py   ftw.bridge.client(Download)
 
        self._expect_request(url=url).result(self._create_response(
                status_code=200, raw=feed_data))
 
        self.replay()
        _portlet, portlet_hash = self._get_portlet_and_hash()
        self._expect_request().result(self._create_response(
                status_code=200, raw=data))
 
        self.replay()

src/f/t/ftw.bridge.client-1.0.8/ftw/bridge/client/tests/test_request.py   ftw.bridge.client(Download)
    def test_request_path(self):
        response = self._create_response()
        self._expect_request(
            url='http://bridge/proxy/target-client/path/to/@@something'
            ).result(response)
    def test_request_path_with_leading_slash(self):
        response = self._create_response()
        self._expect_request(
            url='http://bridge/proxy/target-client/@@something'
            ).result(response)
    def test_request_default_headers(self):
        response = self._create_response()
        self._expect_request(
            headers={'X-BRIDGE-ORIGIN': 'current-client',
                     'X-BRIDGE-AC': 'john.doe'}
    def test_request_custom_headers(self):
        response = self._create_response()
        self._expect_request(
            headers={'X-BRIDGE-ORIGIN': 'current-client',
                     'X-BRIDGE-AC': 'john.doe',
    def test_passed_data(self):
        response = self._create_response()
        self._expect_request(data={'foo': 'bar'}).result(response)
 
        self.replay()

src/f/t/ftw.bridge.client-1.0.8/ftw/bridge/client/tests/test_tabbed.py   ftw.bridge.client(Download)
        query = {'portal_type': ['Folder']}
 
        response = self._create_response(raw=json.dumps(response_data))
        url = 'http://bridge/proxy/other-client/@@bridge-search-catalog'
 
                 'path': '/Plone'}
 
        response = self._create_response(raw='[]')
        url = 'http://bridge/proxy/other-client/@@bridge-search-catalog'
 

src/f/t/ftw.bridge.client-1.0.8/ftw/bridge/client/tests/test_watch_action_view.py   ftw.bridge.client(Download)
        self._expect_request(url=bridge_path,
                             data={'path': feed_path}).result(
            self._create_response(raw='OK'))
 
        self.replay()