def test_store_async_exception(self): """Ensure an async exception is encoded correctly.""" async_id = "asyncid" async_result = AsyncResult() try: raise Exception() except Exception, e: async_result.payload = encode_exception(e) async_result.status = async_result.ERROR
def test_failure_in_marker(self, get_multi_async): """Ensure all the results are yielded out when less than the batch size and a failure is included in the results. """ async_id = "1" async_result = AsyncResult() try: raise Exception() except Exception, e: async_result.payload = encode_exception(e) async_result.status = async_result.ERROR