From d652f29df50fd7bfd88c709b8c482d087470429e Mon Sep 17 00:00:00 2001 From: Nickolai Novik Date: Wed, 22 Mar 2017 00:10:14 +0200 Subject: [PATCH] make compatible tests --- tests/test_cookies_identity.py | 4 ++-- tests/test_session_identity.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_cookies_identity.py b/tests/test_cookies_identity.py index d4627ac..e197751 100644 --- a/tests/test_cookies_identity.py +++ b/tests/test_cookies_identity.py @@ -94,14 +94,14 @@ def test_forget(loop, test_client): client = yield from test_client(app) resp = yield from client.post('/login') assert 200 == resp.status - assert resp.url.endswith('/') + assert str(resp.url).endswith('/') cookies = client.session.cookie_jar.filter_cookies( client.make_url('/')) assert 'Andrew' == cookies['AIOHTTP_SECURITY'].value yield from resp.release() resp = yield from client.post('/logout') assert 200 == resp.status - assert resp.url.endswith('/') + assert str(resp.url).endswith('/') cookies = client.session.cookie_jar.filter_cookies( client.make_url('/')) assert 'AIOHTTP_SECURITY' not in cookies diff --git a/tests/test_session_identity.py b/tests/test_session_identity.py index a06a649..86f9cf7 100644 --- a/tests/test_session_identity.py +++ b/tests/test_session_identity.py @@ -116,14 +116,14 @@ def test_forget(make_app, test_client): resp = yield from client.post('/login') assert 200 == resp.status - assert resp.url.endswith('/') + assert str(resp.url).endswith('/') txt = yield from resp.text() assert 'Andrew' == txt yield from resp.release() resp = yield from client.post('/logout') assert 200 == resp.status - assert resp.url.endswith('/') + assert str(resp.url).endswith('/') txt = yield from resp.text() assert '' == txt yield from resp.release()