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

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

src/f/t/ftw.bridge.client-1.0.8/ftw/bridge/client/tests/test_request.py   ftw.bridge.client(Download)
        utility = getUtility(IBridgeRequest)
 
        with self.assertRaises(MaintenanceError):
            utility('target-client', '@@something')
 
 
        # test 2
        with self.assertRaises(urllib2.HTTPError) as cm:
            response = utility('current-client', 'baz/@@view?foo=bar')
        response = cm.exception
 
        # test 3
        with self.assertRaises(ConflictError):
            utility('current-client', 'baz/@@view?foo=bar')
 
        self.replay()
        utility = getUtility(IBridgeRequest)
        with self.assertRaises(urllib2.URLError):
            utility('target-client', 'path/to/@@something')
 

src/f/t/ftw.bridge.client-1.0.8/ftw/bridge/client/tests/test_tabbed.py   ftw.bridge.client(Download)
        self.replay()
        component = queryMultiAdapter((config, request), ITableSource)
        with self.assertRaises(ValueError) as cm:
            component.search_results({})
        self.assertIn(