Commit 82a74a65 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Check in tests that reset is not allowed as ZODB Component reference.

parent 2d8b3838
...@@ -1392,6 +1392,8 @@ class _TestZodbComponent(SecurityTestCase): ...@@ -1392,6 +1392,8 @@ class _TestZodbComponent(SecurityTestCase):
# Besides of clashing with protected attributes/methods, it does not # Besides of clashing with protected attributes/methods, it does not
# make sense to have reference starting with '_' # make sense to have reference starting with '_'
'_ReferenceReservedKeywords': ComponentMixin._message_invalid_reference, '_ReferenceReservedKeywords': ComponentMixin._message_invalid_reference,
# Clash with reset()
'reset': ComponentMixin._message_invalid_reference,
# PEP-302 required functions defined on top-level Component Package # PEP-302 required functions defined on top-level Component Package
'find_module': ComponentMixin._message_invalid_reference, 'find_module': ComponentMixin._message_invalid_reference,
'load_module': ComponentMixin._message_invalid_reference} 'load_module': ComponentMixin._message_invalid_reference}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment