def METHOD_NAME(self, nb_func, nb_arg,
                                    mock_io, mock_get_hub, event):
    mock_io.side_effect = [self._make_ignored_oserror(), 42]
    fd = 100
    result = nb_func(fd, nb_arg)
    self.assertEqual(result, 42)
    self._check_hub_event_closed(mock_get_hub, fd, event)