diff options
author | Kegan Dougal <kegan@matrix.org> | 2014-09-15 15:14:19 +0100 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2014-09-15 15:14:19 +0100 |
commit | c04caff55c47364634b4148e9a4b328a250a31ab (patch) | |
tree | f8ac5c01ae94cb8bb0ddf00103304f379447f99f /tests/rest | |
parent | Updated cmdclient to use new registration logic. (diff) | |
download | synapse-c04caff55c47364634b4148e9a4b328a250a31ab.tar.xz |
Fix unit tests.
Diffstat (limited to '')
-rw-r--r-- | tests/rest/utils.py | 10 |
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) |