def METHOD_NAME(self):
    # If the payload of a repeat record is missing, it should be
    # cancelled, and process_repeater() should continue to the next
    # payload
    with patch('corehq.motech.repeaters.models.log_repeater_error_in_datadog'), \
            patch('corehq.motech.repeaters.tasks.metrics_counter'):
        process_repeater(self.repeater.id)
    # All records were tried and cancelled
    records = list(self.repeater.repeat_records.all())
    self.assertEqual(len(records), 10)
    self.assertTrue(all(r.state == RECORD_CANCELLED_STATE for r in records))
    # All records have a cancelled Attempt
    self.assertTrue(all(len(r.attempts) == 1 for r in records))
    self.assertTrue(all(r.attempts[0].state == RECORD_CANCELLED_STATE
                        for r in records))