Commit cf7093fb authored by Gavin Mak's avatar Gavin Mak Committed by Commit Bot

Fix assert statements in common.py

Bug: 1008539
Change-Id: I91f499029b9aebea6163cf62429d84d0ee550040
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1827549Reviewed-by: default avatarRobert Ogden <robertogden@chromium.org>
Commit-Queue: Gavin Mak <gavinmak@google.com>
Cr-Commit-Position: refs/heads/master@{#700459}
parent 9ba07f67
...@@ -1016,7 +1016,7 @@ class IntegrationTest(unittest.TestCase): ...@@ -1016,7 +1016,7 @@ class IntegrationTest(unittest.TestCase):
'chrome-proxy-content-transform'] 'chrome-proxy-content-transform']
if ('empty-image' in cpct_response): if ('empty-image' in cpct_response):
self.assertIn('empty-image', cpat_request) self.assertIn('empty-image', cpat_request)
self.assertTrue(int(content_length) < 100) self.assertLess(int(content_length), 100)
return True; return True;
return False; return False;
else: else:
...@@ -1028,7 +1028,7 @@ class IntegrationTest(unittest.TestCase): ...@@ -1028,7 +1028,7 @@ class IntegrationTest(unittest.TestCase):
self.assertNotIn('chrome-proxy-content-transform', self.assertNotIn('chrome-proxy-content-transform',
http_response.response_headers) http_response.response_headers)
content_length = http_response.response_headers['content-length'] content_length = http_response.response_headers['content-length']
self.assertTrue(int(content_length) > 100) self.assertGreater(int(content_length), 100)
return False; return False;
def checkLitePageResponse(self, http_response): def checkLitePageResponse(self, http_response):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment