summaryrefslogtreecommitdiff
path: root/repoze/bfg/tests/test_integration.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-11-23 05:25:01 +0000
committerChris McDonough <chrism@agendaless.com>2009-11-23 05:25:01 +0000
commitbab1904e297b056351327a207589fb051a412eca (patch)
tree8fcc7160d812147e0826668ed1877377e856d08d /repoze/bfg/tests/test_integration.py
parentb41a3e9971df29b73ba4287569ac00f6d148d114 (diff)
downloadpyramid-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.py6
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__)