diff options
author | Kegan Dougal <kegan@matrix.org> | 2014-08-26 17:21:48 +0100 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2014-08-26 17:21:48 +0100 |
commit | 5a93bfe1f03bf225bcf3b14089faefa3b5715499 (patch) | |
tree | 8fdd0868de29108aa3de5a9bb524b516c343e326 /tests/rest/utils.py | |
parent | Added RoomSendEventRestServlet to send generic non-state events. It even appe... (diff) | |
download | synapse-5a93bfe1f03bf225bcf3b14089faefa3b5715499.tar.xz |
Removed MessageRestServlet, use RoomSendEventRestServlet instead. Updated cmdclient, tests and webclient. All appears to work.
Diffstat (limited to 'tests/rest/utils.py')
-rw-r--r-- | tests/rest/utils.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/rest/utils.py b/tests/rest/utils.py index bc8bff0f1a..590d12f155 100644 --- a/tests/rest/utils.py +++ b/tests/rest/utils.py @@ -99,14 +99,14 @@ class RestTestCase(unittest.TestCase): defer.returnValue(response) @defer.inlineCallbacks - def send(self, room_id, sender_id, body=None, msg_id=None, tok=None, + def send(self, room_id, body=None, txn_id=None, tok=None, expect_code=200): - if msg_id is None: - msg_id = "m%s" % (str(time.time())) + if txn_id is None: + txn_id = "m%s" % (str(time.time())) if body is None: body = "body_text_here" - path = "/rooms/%s/messages/%s/%s" % (room_id, sender_id, msg_id) + path = "/rooms/%s/send/m.room.message/%s" % (room_id, txn_id) content = '{"msgtype":"m.text","body":"%s"}' % body if tok: path = path + "?access_token=%s" % tok |