From 99f83a73efd2f61d7a66771b091865755ef19fb1 2015-12-24 17:38:17 From: Jan Kaluza Date: 2015-12-24 17:38:17 Subject: [PATCH] Check also for plaintext auth error message --- diff --git a/tests/slack_jabber/bad_password.py b/tests/slack_jabber/bad_password.py index 5fd8b62ec722b48901949dc76ef29875d460bd4f..86ba3d537f399f0bb0213c8de997e8cafcf1b6c0 100644 --- a/tests/slack_jabber/bad_password.py +++ b/tests/slack_jabber/bad_password.py @@ -24,7 +24,7 @@ class Responder(sleekxmpp.ClientXMPP): self.tests["abc_received"] = ["Test message received", False] def message(self, msg): - if msg['body'] == "Not Authorized": + 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")