'Initialize new `FakeHttplibSocket`.'

def __init__(self, response_string):

    if isinstance(response_string, six.text_type):
        response_string = response_string.encode('utf-8')
    self._buffer = six.BytesIO(response_string)
