Skip to content

Commit

Permalink
Use more descriptive name.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed May 15, 2020
1 parent 23ef8bb commit 13c1b19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ZPublisher/tests/testHTTPResponse.py
Expand Up @@ -1243,8 +1243,8 @@ def test___str__after_expireCookie(self):
response.expireCookie('qux', path='/')
result = bytes(response)
lines = result.split(b'\r\n')
cookie_line = [x for x in lines if b'Set-Cookie' in x][0]
other_lines = [x for x in lines if b'Set-Cookie' not in x]
cookie_line = [line for line in lines if b'Set-Cookie' in line][0]
other_lines = [line for line in lines if b'Set-Cookie' not in line]
self.assertEqual(len(lines), 6)
expected = {
b'Status: 200 OK',
Expand Down

0 comments on commit 13c1b19

Please sign in to comment.