def METHOD_NAME(self):
    self.schedule_event_source.Enabled = True
    resources = self.schedule_event_source.to_cloudformation(function=self.func)
    schedule = resources[0]
    self.assertEqual(schedule.State, "ENABLED")
    self.schedule_event_source.Enabled = False
    resources = self.schedule_event_source.to_cloudformation(function=self.func)
    schedule = resources[0]
    self.assertEqual(schedule.State, "DISABLED")