Permalink
Browse files

collapsed request_param text to match the match_param text format

  • Loading branch information...
1 parent 3fb934e commit 5507b82bcf5e1b9d59216e72ea71a026b72cd255 @mmerickel mmerickel committed Oct 13, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 pyramid/config/predicates.py
  2. +3 −3 pyramid/tests/test_config/test_predicates.py
@@ -80,7 +80,7 @@ def __init__(self, val, config):
def text(self):
return 'request_param %s' % ','.join(
- ['%s = %s' % (x,y) if y else x for x, y in self.reqs]
+ ['%s=%s' % (x,y) if y else x for x, y in self.reqs]
)
phash = text
@@ -144,19 +144,19 @@ def test_text_exists(self):
def test_text_withval(self):
inst = self._makeOne('abc= 1')
- self.assertEqual(inst.text(), 'request_param abc = 1')
+ self.assertEqual(inst.text(), 'request_param abc=1')
def test_text_multi(self):
inst = self._makeOne(('abc= 1', 'def'))
- self.assertEqual(inst.text(), 'request_param abc = 1,def')
+ self.assertEqual(inst.text(), 'request_param abc=1,def')
def test_phash_exists(self):
inst = self._makeOne('abc')
self.assertEqual(inst.phash(), 'request_param abc')
def test_phash_withval(self):
inst = self._makeOne('abc= 1')
- self.assertEqual(inst.phash(), "request_param abc = 1")
+ self.assertEqual(inst.phash(), "request_param abc=1")
class TestMatchParamPredicate(unittest.TestCase):
def _makeOne(self, val):

0 comments on commit 5507b82

Please sign in to comment.