'Updates the should_display field of the rerun state object for self.course_key
and verifies its new state.'

def dismiss_ui_and_verify(self, rerun):

    user_who_dismisses_ui = UserFactory()
    CourseRerunState.objects.update_should_display(entry_id=rerun.id, user=user_who_dismisses_ui, should_display=False)
    self.expected_rerun_state.update({'updated_user': user_who_dismisses_ui, 'should_display': False})
    self.verify_rerun_state()
