moo.core.tests.test_security_sandbox.test_getitem_underscore_key_blocked
- moo.core.tests.test_security_sandbox.test_getitem_underscore_key_blocked()
Reading d[‘__class__’] in restricted code must raise KeyError. dict() (a C builtin) can construct a mapping with underscore keys without going through _write_.__setitem__; _getitem_ must guard the read side too.