summaryrefslogtreecommitdiff
path: root/repoze
diff options
context:
space:
mode:
Diffstat (limited to 'repoze')
-rw-r--r--repoze/bfg/testing.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/repoze/bfg/testing.py b/repoze/bfg/testing.py
index cd43c297e..d0a361c10 100644
--- a/repoze/bfg/testing.py
+++ b/repoze/bfg/testing.py
@@ -201,8 +201,9 @@ def registerUtility(impl, iface=Interface, name=''):
more information about ZCA utilities.
.. warning:: This API is deprecated as of :mod:`repoze.bfg` 1.2.
- Instead use the ``add_utility`` method of a
- :term:`Configurator` in your unit and integration tests.
+ Instead use the ``registerUtility`` method of the ``registry``
+ attribute of a :term:`Configurator` in your unit and
+ integration tests.
"""
reg = get_current_registry()
reg.registerUtility(impl, iface, name=name)
@@ -224,8 +225,9 @@ def registerAdapter(impl, for_=Interface, provides=Interface, name=''):
more information about ZCA adapters.
.. warning:: This API is deprecated as of :mod:`repoze.bfg` 1.2.
- Instead use the ``add_adapter`` method of a
- :term:`Configurator` in your unit and integration tests.
+ Instead use the ``registerAdapter`` method of the ``registry``
+ attribute of a :term:`Configurator` in your unit and integration
+ tests.
"""
reg = get_current_registry()
if not isinstance(for_, (tuple, list)):