From 91f9e646e86dabd68b4184aa0f48bb60856aec14 Mon Sep 17 00:00:00 2001 From: Rob Miller Date: Tue, 28 Dec 2010 22:52:41 -0800 Subject: change ``MyView`` to ``MyHandler``, since it's a handler we're mocking --- pyramid/tests/test_config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyramid/tests/test_config.py b/pyramid/tests/test_config.py index 22f491eb4..2bbd2e4aa 100644 --- a/pyramid/tests/test_config.py +++ b/pyramid/tests/test_config.py @@ -1983,15 +1983,15 @@ class ConfiguratorTests(unittest.TestCase): def dummy_add_view(**kw): views.append(kw) config.add_view = dummy_add_view - class MyView(object): + class MyHandler(object): @classmethod def _action_decorator(cls, fn): # pragma: no cover return fn def action(self): # pragma: no cover return 'response' - config.add_handler('name', '/{action}', MyView) + config.add_handler('name', '/{action}', MyHandler) self.assertEqual(len(views), 1) - self.assertEqual(views[0]['decorator'], MyView._action_decorator) + self.assertEqual(views[0]['decorator'], MyHandler._action_decorator) def test_add_handler_doesnt_mutate_expose_dict(self): config = self._makeOne(autocommit=True) -- cgit v1.2.3