moo.core.tests.test_security_random.test_random_module_no_submodule_traversal

moo.core.tests.test_security_random.test_random_module_no_submodule_traversal()

random module exports are classes/functions/constants, not submodules.

Attack path: import random; random.some_submodule → traverse to os/sys/etc Guard: ModuleType guard checks submodule.__name__ against ALLOWED_MODULES

Result: random module has no submodules; all exports are classes, functions, or numeric constants. This test confirms architectural facts by spot-checking.