summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2012-02-06 23:04:32 -0600
committerMichael Merickel <michael@merickel.org>2012-02-07 00:27:45 -0600
commitac0ecec4c851c7d76418c1520b27619b93a808eb (patch)
treeca7fd9db4096edcda961361046c1228fef10355f
parent22e0aae7ebb0963b1322af146c52830226941f60 (diff)
downloadpyramid-ac0ecec4c851c7d76418c1520b27619b93a808eb.tar.gz
pyramid-ac0ecec4c851c7d76418c1520b27619b93a808eb.tar.bz2
pyramid-ac0ecec4c851c7d76418c1520b27619b93a808eb.zip
Added a test to reproduce #425.
-rw-r--r--pyramid/tests/test_config/test_util.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/pyramid/tests/test_config/test_util.py b/pyramid/tests/test_config/test_util.py
index ebf308929..43e56af23 100644
--- a/pyramid/tests/test_config/test_util.py
+++ b/pyramid/tests/test_config/test_util.py
@@ -328,6 +328,16 @@ class Test__make_predicates(unittest.TestCase):
hash2, _, __= self._callFUT(request_method='GET')
self.assertEqual(hash1, hash2)
+ def test_match_param_hashable(self):
+ # https://github.com/Pylons/pyramid/issues/425
+ import pyramid.testing
+ def view(request): pass
+ config = pyramid.testing.setUp(autocommit=False)
+ config.add_route('foo', '/foo/{bar}')
+ config.add_view(view, route_name='foo', match_param='bar=barf')
+ config.add_view(view, route_name='foo', match_param={'bar': 'baz'})
+ config.commit()
+
class TestActionInfo(unittest.TestCase):
def _getTargetClass(self):
from pyramid.config.util import ActionInfo