def METHOD_NAME(self):  # noqa
    """Test delete_inactive_submissions() task"""
    self._publish_transportation_form()
    self._make_submissions()
    self.xform.refresh_from_db()
    # check submissions count
    self.assertEqual(self.xform.instances.count(), 4)
    # soft delete one of the instances
    instance = self.xform.instances.last()
    # set submission date_created to be 90 days from now
    instance.date_created = timezone.now() - timedelta(days=90)
    instance.save()
    # set deleted_at to be 60 days from now
    # meaning the submission is soft deleted 30 days after being created
    deleted_at = timezone.now() - timedelta(days=60)
    instance.set_deleted(deleted_at, self.user)
    # test that theres one soft deleted submission
    self.assertEqual(
        self.xform.instances.filter(deleted_at__isnull=False).count(), 1
    )
    delete_inactive_submissions()
    # test that the soft deleted submission is deleted
    # since deleted_at is greater than specified lifespan
    self.assertEqual(
        self.xform.instances.filter(deleted_at__isnull=False).count(), 0
    )