'Fake C{os.read}: save action, and return C{readData} content.
@param fd: The file descriptor to read.
@param size: The maximum number of bytes to read.
@return: A fixed C{bytes} buffer.'

def read(self, fd, size):

    self.actions.append(('read', fd, size))
    return self.readData
