Commit 81405456 authored by Łukasz Nowak's avatar Łukasz Nowak

Fixup 129963a4

parent 129963a4
...@@ -31,8 +31,7 @@ class TestSlapOSDefaultScenario(TestSlapOSSecurityMixin): ...@@ -31,8 +31,7 @@ class TestSlapOSDefaultScenario(TestSlapOSSecurityMixin):
def joinSlapOS(self, web_site, reference): def joinSlapOS(self, web_site, reference):
def findMessage(email, body): def findMessage(email, body):
for candidate in reversed(self.portal.MailHost.getMessageList()): for candidate in reversed(self.portal.MailHost.getMessageList()):
if email in candidate[1] \ if [q for q in candidate[1] if email in q] and body in candidate[2]:
and body in candidate[2]:
return candidate[2] return candidate[2]
credential_request_form = self.web_site.ERP5Site_viewCredentialRequestForm() credential_request_form = self.web_site.ERP5Site_viewCredentialRequestForm()
......
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