From 370b38696a0d0124d946de4a4d9b50b3d2f4c322 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 27 Jun 2016 11:42:36 -0700 Subject: [PATCH] test_messages: Fix broken huddle messages test. The second login call was failing because the user didn't exist. --- zerver/tests/test_messages.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zerver/tests/test_messages.py b/zerver/tests/test_messages.py index 522f73df21..ca1e56e3e9 100644 --- a/zerver/tests/test_messages.py +++ b/zerver/tests/test_messages.py @@ -588,14 +588,14 @@ class MessagePOSTTest(AuthedTestCase): "sender": "sipbtest@mit.edu", "content": "Test message", "client": "zephyr_mirror", - "to": ujson.dumps(["sipbexch@mit.edu", + "to": ujson.dumps(["espuser@mit.edu", "starnine@mit.edu"])} with mock.patch('DNS.dnslookup', return_value=[['starnine:*:84233:101:Athena Consulting Exchange User,,,:/mit/starnine:/bin/bash']]): self.login("starnine@mit.edu") result1 = self.client.post("/json/messages", msg) - with mock.patch('DNS.dnslookup', return_value=[['sipbexch:*:87824:101:Exch Sipb,,,:/mit/sipbexch:/bin/athena/bash']]): - self.login("sipbexch@mit.edu") + with mock.patch('DNS.dnslookup', return_value=[['espuser:*:95494:101:Esp Classroom,,,:/mit/espuser:/bin/athena/bash']]): + self.login("espuser@mit.edu") result2 = self.client.post("/json/messages", msg) self.assertEqual(ujson.loads(result1.content)['id'], ujson.loads(result2.content)['id'])