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