def METHOD_NAME(self):
    target = SiderealTargetFactory.create()
    obs_params['target_id'] = target.id
    obs_params['start'] = (datetime.now() - timedelta(hours=12)).strftime('%Y-%m-%dT%H:%M:%S')
    obs_params['end'] = (datetime.now() + timedelta(hours=12)).strftime('%Y-%m-%dT%H:%M:%S')
    observing_records = ObservingRecordFactory.create_batch(5,
                                                            target_id=target.id,
                                                            parameters=obs_params)
    self.group = ObservationGroup.objects.create()
    self.group.observation_records.add(*observing_records)
    self.group.save()
    self.dynamic_cadence = DynamicCadence.objects.create(
        cadence_strategy='Test Strategy', cadence_parameters={'cadence_frequency': 72}, active=True,
        observation_group=self.group)