diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-09-20 22:56:37 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-09-20 22:56:37 +0000 |
| commit | 022873d909055040a39f24fe3df34f4c154f9102 (patch) | |
| tree | 964cc5a9dde24f86f101cfabb15a5841de0f07f6 /repoze/bfg/tests/test_zcml.py | |
| parent | e4610566d881f707c01d266a7e336084029c83e4 (diff) | |
| download | pyramid-022873d909055040a39f24fe3df34f4c154f9102.tar.gz pyramid-022873d909055040a39f24fe3df34f4c154f9102.tar.bz2 pyramid-022873d909055040a39f24fe3df34f4c154f9102.zip | |
Make instance grokking work again.
Diffstat (limited to 'repoze/bfg/tests/test_zcml.py')
| -rw-r--r-- | repoze/bfg/tests/test_zcml.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/repoze/bfg/tests/test_zcml.py b/repoze/bfg/tests/test_zcml.py index 79354417f..5be8b7fb2 100644 --- a/repoze/bfg/tests/test_zcml.py +++ b/repoze/bfg/tests/test_zcml.py @@ -1808,7 +1808,7 @@ class TestZCMLConfigure(unittest.TestCase): self.assertRaises(IOError, self._callFUT, 'configure.zcml', self.module) -class TestBFGViewFunctionGrokker(unittest.TestCase): +class TestBFGViewGrokker(unittest.TestCase): def setUp(self): cleanUp() @@ -1816,8 +1816,8 @@ class TestBFGViewFunctionGrokker(unittest.TestCase): cleanUp() def _getTargetClass(self): - from repoze.bfg.zcml import BFGViewFunctionGrokker - return BFGViewFunctionGrokker + from repoze.bfg.zcml import BFGViewGrokker + return BFGViewGrokker def _makeOne(self, *arg, **kw): return self._getTargetClass()(*arg, **kw) @@ -1881,7 +1881,7 @@ class TestZCMLScanDirective(unittest.TestCase): return scan(context, package, martian) def test_it(self): - from repoze.bfg.zcml import SimpleMultiGrokker + from repoze.bfg.zcml import BFGMultiGrokker from repoze.bfg.zcml import exclude martian = DummyMartianModule() module_grokker = DummyModuleGrokker() @@ -1889,7 +1889,7 @@ class TestZCMLScanDirective(unittest.TestCase): self._callFUT(None, dummy_module, martian) self.assertEqual(martian.name, 'dummy') multi_grokker = martian.module_grokker.multi_grokker - self.assertEqual(multi_grokker.__class__, SimpleMultiGrokker) + self.assertEqual(multi_grokker.__class__, BFGMultiGrokker) self.assertEqual(martian.context, None) self.assertEqual(martian.exclude_filter, exclude) |
