summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-12-20 11:22:37 +0000
committerChris McDonough <chrism@agendaless.com>2009-12-20 11:22:37 +0000
commitcff108a0829bc57786fe65727ad03c6aaf951f25 (patch)
tree3893d070ac5a25df708f83de8c1c0d9748ce50e4
parenta3948908aa3478eea926576341560e2e38e7df75 (diff)
downloadpyramid-cff108a0829bc57786fe65727ad03c6aaf951f25.tar.gz
pyramid-cff108a0829bc57786fe65727ad03c6aaf951f25.tar.bz2
pyramid-cff108a0829bc57786fe65727ad03c6aaf951f25.zip
Removed.
-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)):