Fix the broken testing in py3k.

This commit is contained in:
Jiangge Zhang
2015-04-24 18:06:56 +08:00
parent a4ce015943
commit 5cac457342
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -59,5 +59,5 @@ def test_hsts_header(app_factory):
client = app_factory.app.test_client()
r = client.get('/', base_url='https://example.com')
assert r.status_code == 200
assert r.data == 'home'
assert r.data.decode('utf-8') == 'home'
assert r.headers['Strict-Transport-Security'] == 'max-age=31536000'
+1 -1
View File
@@ -35,5 +35,5 @@ def test_hsts_header(sslify):
client = sslify.app.test_client()
r = client.get('/', base_url='https://example.com')
assert r.status_code == 200
assert r.data == 'home'
assert r.data.decode('utf-8') == 'home'
assert r.headers['Strict-Transport-Security'] == 'max-age=31536000'