def test_beginHTTPError(self):
        def getNextService(self, ignored):
            raise HTTPFetchingError("Unit test")

        def test():
            try:
                self.consumer.begin('unused in this test')
            except DiscoveryFailure, why:
                self.failUnless(why[0].startswith('Error fetching'))
                self.failIf(why[0].find('Unit test') == -1)
            else:
                self.fail('Expected DiscoveryFailure')

        self.withDummyDiscovery(test, getNextService)
Pushes an order to change the priority of the given node.
dataset/ETHPy150Open CollabQ/CollabQ/openid/test/test_consumer.py/ConsumerTest.test_beginHTTPError--crossover with--dataset/ETHPy150Open mikrosimage/OpenRenderManagement/src/octopus/dispatcher/webservice/nodes.py/NodePriorityResource.put