diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-12-20 11:22:37 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-12-20 11:22:37 +0000 |
| commit | cff108a0829bc57786fe65727ad03c6aaf951f25 (patch) | |
| tree | 3893d070ac5a25df708f83de8c1c0d9748ce50e4 | |
| parent | a3948908aa3478eea926576341560e2e38e7df75 (diff) | |
| download | pyramid-cff108a0829bc57786fe65727ad03c6aaf951f25.tar.gz pyramid-cff108a0829bc57786fe65727ad03c6aaf951f25.tar.bz2 pyramid-cff108a0829bc57786fe65727ad03c6aaf951f25.zip | |
Removed.
| -rw-r--r-- | repoze/bfg/testing.py | 10 |
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)): |
