Commit 17ce1aeb authored by Jérome Perrin's avatar Jérome Perrin

free_subscription: py3

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