summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Miller <rob@mochimedia.com>2010-12-28 22:52:41 -0800
committerRob Miller <rob@mochimedia.com>2010-12-28 22:52:41 -0800
commit91f9e646e86dabd68b4184aa0f48bb60856aec14 (patch)
tree55ac9b76addbad1b35d5bbfa9b40a9482eb38953
parent744d76312799f2537a200e4972f309c7670a4cef (diff)
downloadpyramid-91f9e646e86dabd68b4184aa0f48bb60856aec14.tar.gz
pyramid-91f9e646e86dabd68b4184aa0f48bb60856aec14.tar.bz2
pyramid-91f9e646e86dabd68b4184aa0f48bb60856aec14.zip
change ``MyView`` to ``MyHandler``, since it's a handler we're mocking
-rw-r--r--pyramid/tests/test_config.py6
1 files 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)