    def test_save(self):
        """
        Check scene will save data on exit if needed.
        """
        effect = MockEffect()
        scene = Scene([effect], duration=10)
        self.assertFalse(effect.save_called)
        scene.exit()
        self.assertTrue(effect.save_called)
Check scene will save data on exit if needed.
tests/test_scene.py