def METHOD_NAME(self):
    """A video recording cannot be started if live is not running."""
    video = VideoFactory(
        allow_recording=True,
        live_state=random.choice([s[0] for s in LIVE_CHOICES if s[0] != "running"]),
        live_type=JITSI,
    )
    with self.assertRaises(VideoRecordingError) as context:
        start_recording(video)
    self.assertEqual(str(context.exception), "Live is not running.")
    self.assertEqual(video.recording_slices, [])