Commit 95bee1ef authored by Tres Seaver's avatar Tres Seaver

Rename 'test_overriding_attrs.py' -> 'attrhooks.py'.

It is now examples for the doctests, and no longer a test module.
parent 590ae47e
...@@ -14,7 +14,7 @@ attribute that isn't handled by the default machinery. ...@@ -14,7 +14,7 @@ attribute that isn't handled by the default machinery.
.. doctest:: .. doctest::
>>> from persistent.tests.test_overriding_attrs import OverridesGetattr >>> from persistent.tests.attrhooks import OverridesGetattr
>>> o = OverridesGetattr() >>> o = OverridesGetattr()
>>> o._p_changed >>> o._p_changed
False False
...@@ -30,7 +30,7 @@ We'll save the object, so it can be deactivated: ...@@ -30,7 +30,7 @@ We'll save the object, so it can be deactivated:
.. doctest:: .. doctest::
>>> from persistent.tests.test_overriding_attrs import _resettingJar >>> from persistent.tests.attrhooks import _resettingJar
>>> jar = _resettingJar() >>> jar = _resettingJar()
>>> jar.add(o) >>> jar.add(o)
>>> o._p_deactivate() >>> o._p_deactivate()
...@@ -61,7 +61,7 @@ Our sample class takes initial values as keyword arguments to the constructor: ...@@ -61,7 +61,7 @@ Our sample class takes initial values as keyword arguments to the constructor:
.. doctest:: .. doctest::
>>> from persistent.tests.test_overriding_attrs import VeryPrivate >>> from persistent.tests.attrhooks import VeryPrivate
>>> o = VeryPrivate(x=1) >>> o = VeryPrivate(x=1)
...@@ -89,7 +89,7 @@ Next, we'll save the object in a database so that we can deactivate it: ...@@ -89,7 +89,7 @@ Next, we'll save the object in a database so that we can deactivate it:
.. doctest:: .. doctest::
>>> from persistent.tests.test_overriding_attrs import _rememberingJar >>> from persistent.tests.attrhooks import _rememberingJar
>>> jar = _rememberingJar() >>> jar = _rememberingJar()
>>> jar.add(o) >>> jar.add(o)
>>> o._p_deactivate() >>> o._p_deactivate()
......
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