test_stateful_sys_model

test_stateful_sys_model.test_callback_state_borrows_scene_without_retaining_registration_helper()[source]

The helper is temporary; the state remains usable for the scene lifetime.

test_stateful_sys_model.test_register_state_spec_preserves_keywords_and_borrowed_access()[source]

Register through the public specification API while the scene remains alive.

test_stateful_sys_model.test_stateful()[source]

Tests that StatefulSysModel works as expected.

We use a simple StatefulSysModel with a single state. We check that said state is registered with the expected name and that its value evolves as we would expect.