moo.core.tests.test_security_random.test_random_respects_underscore_guard

moo.core.tests.test_security_random.test_random_respects_underscore_guard()

Confirm random objects respect the global underscore attribute guard.

All getattr/hasattr calls on random objects go through safe_getattr, which blocks _-prefixed names at the top. This is belt-and-suspenders with the RestrictedPython compile-time check.