Commit fc17b3ee authored by Jérome Perrin's avatar Jérome Perrin

free_subscription: py3

parent f2d7a90b
...@@ -311,9 +311,11 @@ class TestFreeSubscription(ERP5TypeTestCase): ...@@ -311,9 +311,11 @@ class TestFreeSubscription(ERP5TypeTestCase):
from six.moves.urllib.request import urlopen from six.moves.urllib.request import urlopen
link = sequence['unsubscription_link'] link = sequence['unsubscription_link']
self.logout() self.logout()
data = urlopen(link) resp = urlopen(link)
self.assertNotIn("Site Error", data) data = resp.read()
self.assertNotIn("You do not have enough permissions to access this page", data.read()) self.assertEqual(resp.status, 200, (resp.status, data))
self.assertNotIn(b"Site Error", data)
self.assertNotIn(b"You do not have enough permissions to access this page", data)
self.login() self.login()
def stepCheckFreeSubscriptionRequestCreated(self, sequence=None, sequence_list=None, def stepCheckFreeSubscriptionRequestCreated(self, sequence=None, sequence_list=None,
......
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