From b08537191b5871a234891b2ea7e03bc38076793a 2015-12-28 12:23:28 From: Vitaly Takmazov Date: 2015-12-28 12:23:28 Subject: [PATCH] fix tests --- diff --git a/tests/slack_jabber/bad_password.py b/tests/slack_jabber/bad_password.py index 1e0b82f3746df1f72183a7c749584b658be64379..5a6f7ee5e7741a4c2383181ff13ce28b177f97f5 100644 --- a/tests/slack_jabber/bad_password.py +++ b/tests/slack_jabber/bad_password.py @@ -24,8 +24,7 @@ class Responder(sleekxmpp.ClientXMPP): self.tests["abc_received"] = ["Test message received", False] def message(self, msg): - if msg['body'] == "Not Authorized" or msg['body'] == "Server may require plaintext authentication over an unencrypted stream" - : + if msg['body'] == "Not Authorized" or msg['body'] == "Server may require plaintext authentication over an unencrypted stream": self.tests["not_authorized"][1] = True elif msg['body'].find("try using") != -1: self.send_message(mto="spectrum2@spectrum2tests.xmpp.slack.com", mbody=".spectrum2 register client@localhost password #spectrum2_contactlist")