Skip to content

Commit

Permalink
Support Python 2.6.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Oct 30, 2018
1 parent 867eb44 commit c4a3e76
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ZPublisher/tests/testHTTPRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1059,16 +1059,16 @@ def test___str____password_field(self):
req = self._makeOne()
req.form['passwd'] = 'secret'

self.assertNotIn('secret', str(req))
self.assertIn('password obscured', str(req))
self.assert_('secret' not in str(req))
self.assert_('password obscured' in str(req))

def test_text__password_field(self):
# It obscures password fields.
req = self._makeOne()
req.form['passwd'] = 'secret'

self.assertNotIn('secret', req.text())
self.assertIn('password obscured', req.text())
self.assert_('secret' not in str(req))
self.assert_('password obscured' in str(req))


class TestHTTPRequestZope3Views(TestRequestZope3ViewsBase,):
Expand Down

0 comments on commit c4a3e76

Please sign in to comment.