Skip to content

Commit

Permalink
Add HTML tests to request.items() formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Jul 21, 2017
1 parent 202a0d9 commit 87eb714
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zope/error/tests.py
Expand Up @@ -220,7 +220,7 @@ def getLogin(self):

def test_request_items(self):
request = TestRequest()
request.items().append(('request-key', 'request-value'))
request.items().append(('request&key', '<request&value>'))

errUtility = self.makeOne()
exc_info = getAnErrorInfo("Error")
Expand All @@ -229,7 +229,7 @@ def test_request_items(self):
self.assertEqual(1, len(getErrLog))

req_html = getErrLog[0]['req_html']
self.assertEqual(req_html, u'request-key: request-value<br />\n')
self.assertEqual(req_html, u'request&amp;key: &lt;request&amp;value&gt;<br />\n')

def test_default_ignored_exception(self):
class Unauthorized(Exception):
Expand Down

0 comments on commit 87eb714

Please sign in to comment.