def setupWriter(self):
    self.mapreduce_state = self.create_mapreduce_state()
    self.shard_state = self.create_shard_state(0)
    self.writer = self.WRITER_CLS.create(self.mapreduce_state.mapreduce_spec,
                                         self.shard_state.shard_number,
                                         self.shard_state.retries + 1)
    self.writer.begin_slice(None)
    self.ctx = context.Context(self.mapreduce_state.mapreduce_spec,
                               self.shard_state)
    context.Context._set(self.ctx)
Return a fresh :class:`httplib.HTTPSConnection`.
dataset/ETHPy150Open GoogleCloudPlatform/appengine-mapreduce/python/test/mapreduce/output_writers_test.py/GCSRecordOutputWriterTestBase.setupWriter--crossover with--dataset/ETHPy150Open kennethreitz/requests/requests/packages/urllib3/connectionpool.py/HTTPSConnectionPool._new_conn