def METHOD_NAME(self):
    """A video recording can be ended if already started."""
    start = timezone.now()
    stop = start + timedelta(minutes=10)
    video = VideoFactory(
        recording_slices=[{"start": to_timestamp(start)}],
    )
    with mock.patch.object(timezone, "now", return_value=stop):
        stop_recording(video)
    self.assertEqual(
        video.recording_slices,
        [
            {
                "start": to_timestamp(start),
                "stop": to_timestamp(stop),
                "status": PENDING,
            }
        ],
    )