Fix unit tests.

pull/10/head
Kegan Dougal 2014-09-15 15:14:19 +01:00
parent 7f23425e59
commit c04caff55c
1 changed files with 8 additions and 2 deletions

View File

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