diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-11-23 05:25:01 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-11-23 05:25:01 +0000 |
| commit | bab1904e297b056351327a207589fb051a412eca (patch) | |
| tree | 8fcc7160d812147e0826668ed1877377e856d08d /repoze/bfg/tests/test_integration.py | |
| parent | b41a3e9971df29b73ba4287569ac00f6d148d114 (diff) | |
| download | pyramid-bab1904e297b056351327a207589fb051a412eca.tar.gz pyramid-bab1904e297b056351327a207589fb051a412eca.tar.bz2 pyramid-bab1904e297b056351327a207589fb051a412eca.zip | |
Disuse ZCA threadlocal API.
Diffstat (limited to 'repoze/bfg/tests/test_integration.py')
| -rw-r--r-- | repoze/bfg/tests/test_integration.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/repoze/bfg/tests/test_integration.py b/repoze/bfg/tests/test_integration.py index 9175efe4c..48a089f6f 100644 --- a/repoze/bfg/tests/test_integration.py +++ b/repoze/bfg/tests/test_integration.py @@ -35,7 +35,7 @@ class WGSIAppPlusBFGViewTests(unittest.TestCase): self.assertEqual(result, '123') def test_scanned(self): - from zope.component import getSiteManager + from repoze.bfg.threadlocal import get_current_registry from repoze.bfg.interfaces import IRequest from repoze.bfg.interfaces import IView from repoze.bfg.zcml import scan @@ -44,8 +44,8 @@ class WGSIAppPlusBFGViewTests(unittest.TestCase): scan(context, test_integration) actions = context.actions context.actions[-1]['callable']() - sm = getSiteManager() - view = sm.adapters.lookup((INothing, IRequest), IView, name='') + reg = get_current_registry() + view = reg.adapters.lookup((INothing, IRequest), IView, name='') self.assertEqual(view, wsgiapptest) here = os.path.dirname(__file__) |
