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

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

src/f/t/ftw.bridge.client-1.0.8/ftw/bridge/client/tests/test_request.py   ftw.bridge.client(Download)
    def test_component_is_registered(self):
        self.replay()
        utility = queryUtility(IBridgeRequest)
        self.assertNotEqual(utility, None)
 
    def test_implements_interface(self):
        self.replay()
            ).result(response)
 
        self.replay()
        utility = getUtility(IBridgeRequest)
 
            ).result(response)
 
        self.replay()
        utility = getUtility(IBridgeRequest)
 
            ).result(response)
 
        self.replay()
        utility = getUtility(IBridgeRequest)
 

src/f/t/ftw.bridge.client-1.0.8/ftw/bridge/client/tests/test_tabbed.py   ftw.bridge.client(Download)
        request = self.create_dummy()
 
        self.replay()
 
        component = queryMultiAdapter((config, request), ITableSource)
        self.assertNotEqual(component, None)
        self.assertEqual(type(component), BridgeCatalogTableSource)
 
    def test_implements_interface(self):
        self.replay()
                  'limit': 50}).result(response)
 
        self.replay()
        component = queryMultiAdapter((config, request), ITableSource)
        results = component.search_results(query)
        request = self.create_dummy()
 
        self.replay()
        component = queryMultiAdapter((config, request), ITableSource)
        with self.assertRaises(ValueError) as cm:
                  'limit': 50}).result(response)
 
        self.replay()
        component = queryMultiAdapter((config, request), ITableSource)
        component.search_results(query)

src/f/t/ftw.bridge.client-1.0.8/ftw/bridge/client/tests/test_watch_action_view.py   ftw.bridge.client(Download)
    def test_component_is_registered(self):
        context = self.stub()
        request = self.stub_request()
 
        self.replay()
            self._create_response(raw='OK'))
 
        self.replay()
 
        view = getMultiAdapter((context, request), name='watch')
                'url', 503, 'Service Unavailable', None, None))
 
        self.replay()
 
        view = getMultiAdapter((context, request), name='watch')
                'url', 500, 'Internal Server Error', None, None))
 
        self.replay()
 
        view = getMultiAdapter((context, request), name='watch')
            urllib2.URLError('Connection failed'))
 
        self.replay()
 
        view = getMultiAdapter((context, request), name='watch')

src/f/t/ftw.bridge.client-1.0.8/ftw/bridge/client/tests/test_watcher_ajax_view.py   ftw.bridge.client(Download)
                status_code=200, raw=feed_data))
 
        self.replay()
        request.form['hash'] = portlet_hash
 
        self._expect_request().throw(MaintenanceError())
 
        self.replay()
        request.form['hash'] = portlet_hash
 
                status_code=200, raw=data))
 
        self.replay()
        request.form['hash'] = portlet_hash
 

src/f/t/ftw.bridge.client-1.0.8/ftw/bridge/client/tests/test_favorite.py   ftw.bridge.client(Download)
    def test_component_is_registered(self):
        self.replay()
        getMultiAdapter((self.page, self.request),
                        name='remote-add-favorite')
 
            self._create_response(raw='OK'))
 
        self.replay()
        view = getMultiAdapter((self.page, self.request),
                               name='remote-add-favorite')
    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_maintenance_status_message(self):
        self._expect_request().throw(urllib2.HTTPError(
                'url', 503, 'Service Unavailable', None, None))
 
        self.replay()