def METHOD_NAME(self):
    """A video recording cannot be ended if not already started."""
    start = timezone.now() - timedelta(minutes=20)
    stop = timezone.now() + timedelta(minutes=10)
    video = VideoFactory(
        recording_slices=[
            {"start": to_timestamp(start), "stop": to_timestamp(stop)}
        ],
    )
    with self.assertRaises(VideoRecordingError) as context:
        stop_recording(video)
    self.assertEqual(str(context.exception), "Video recording is not started.")