From cff108a0829bc57786fe65727ad03c6aaf951f25 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 20 Dec 2009 11:22:37 +0000 Subject: Removed. --- repoze/bfg/testing.py | 10 ++++++---- 1 file 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)): -- cgit v1.2.3