fix tests

This commit is contained in:
Vitaly Takmazov 2015-12-28 14:23:28 +03:00
parent c065396d67
commit b08537191b

View file

@ -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")