From b08537191b5871a234891b2ea7e03bc38076793a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 28 Dec 2015 14:23:28 +0300 Subject: [PATCH] fix tests --- tests/slack_jabber/bad_password.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/slack_jabber/bad_password.py b/tests/slack_jabber/bad_password.py index 1e0b82f3..5a6f7ee5 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")