'Setup stubs for the action tests.'

def _setup_action_mocks(self, mock_get_resource, now, action_expected=True):

    timeutils.set_time_override(now)
    self.addCleanup(timeutils.clear_time_override)
    if action_expected:
        dummy_action = DummyAction()
        mock_get_resource.return_value = dummy_action
