summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2015-07-29 10:00:54 +0100
committerKegan Dougal <kegan@matrix.org>2015-07-29 10:00:54 +0100
commit11b0a3407485e98082bf06d771e5ae2f68106ca7 (patch)
tree86b2c435048843ffaddfca288a8984eff92b4fa2 /tests
parentFix v2_alpha registration. Add unit tests. (diff)
downloadsynapse-11b0a3407485e98082bf06d771e5ae2f68106ca7.tar.xz
Use the same reg paths as register v1 for ASes.
Namely this means using registration_handler.appservice_register.
Diffstat (limited to 'tests')
-rw-r--r--tests/rest/client/v2_alpha/test_register.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/rest/client/v2_alpha/test_register.py b/tests/rest/client/v2_alpha/test_register.py
index 3edc2ec2e9..66fd25964d 100644
--- a/tests/rest/client/v2_alpha/test_register.py
+++ b/tests/rest/client/v2_alpha/test_register.py
@@ -58,7 +58,9 @@ class RegisterRestServletTestCase(unittest.TestCase):
         self.appservice = {
             "id": "1234"
         }
-        self.registration_handler.register = Mock(return_value=(user_id, token))
+        self.registration_handler.appservice_register = Mock(
+            return_value=(user_id, token)
+        )
         result = yield self.servlet.on_POST(self.request)
         self.assertEquals(result, (200, {
             "user_id": user_id,