

def __init__(self, host, port, open=None, close=None, read=None, write=None):
    super(MockSocket, self).__init__(host, port)
    self.host = host
    self.port = port
    self._open = (open or noop)
    self._close = (close or noop)
    self._read = (read or noop)
    self._write = (write or noop)
    self._is_open = False

dataset/ETHPy150Open steveniemitz/scales/test/scales/util/mocks.py MockSocket.__init__/original