def METHOD_NAME(self):
    exception_raised = False
    try:
        with self.handler:
            raise ValueError
    except ValueError:
        exception_raised = True
    assert exception_raised
    self.init_func.assert_called_once_with(*self.init_args,
                                           **self.init_kwargs)