Skip to content

Commit

Permalink
Fix makequery test to reflect urlencode of utf8 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
flipmcf committed Nov 21, 2016
1 parent 1131901 commit 780de97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ZTUtils/tests/testZope.py
Expand Up @@ -83,8 +83,8 @@ def testMakeQueryUnicode(self):
''' Test makequery against Github issue 15
https://github.com/zopefoundation/Zope/issues/15
'''
query = make_query(unistring=u'unic\xF3de')
self.assertEqual('utf8:ustring:unic\xc3\xb3de', query)
query = make_query(search_text=u'unic\xF3de')
self.assertEqual('search_text:utf8:ustring=unic%C3%B3de', query)

def testMakeHiddenInput(self):
tag = make_hidden_input(foo='bar')
Expand Down

0 comments on commit 780de97

Please sign in to comment.