summary refs log tree commit diff
path: root/tests/rest
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-09-15 15:14:19 +0100
committerKegan Dougal <kegan@matrix.org>2014-09-15 15:14:19 +0100
commitc04caff55c47364634b4148e9a4b328a250a31ab (patch)
treef8ac5c01ae94cb8bb0ddf00103304f379447f99f /tests/rest
parentUpdated cmdclient to use new registration logic. (diff)
downloadsynapse-c04caff55c47364634b4148e9a4b328a250a31ab.tar.xz
Fix unit tests.
Diffstat (limited to '')
-rw-r--r--tests/rest/utils.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/rest/utils.py b/tests/rest/utils.py
index ce2e8fd98a..25ed1388cf 100644
--- a/tests/rest/utils.py
+++ b/tests/rest/utils.py
@@ -95,8 +95,14 @@ class RestTestCase(unittest.TestCase):
 
     @defer.inlineCallbacks
     def register(self, user_id):
-        (code, response) = yield self.mock_resource.trigger("POST", "/register",
-                                '{"user_id":"%s"}' % user_id)
+        (code, response) = yield self.mock_resource.trigger(
+            "POST",
+            "/register",
+            json.dumps({
+                "user_id": user_id,
+                "password": "test",
+                "type": "m.login.password"
+            }))
         self.assertEquals(200, code)
         defer.returnValue(response)