Skip to content

Commit

Permalink
Added a test to reproduce #425.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerickel committed Feb 7, 2012
1 parent 22e0aae commit ac0ecec
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pyramid/tests/test_config/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,16 @@ def test_request_method_ordering_hashes_same(self):
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
Expand Down

0 comments on commit ac0ecec

Please sign in to comment.