summary refs log tree commit diff
path: root/tests/rest/client/v2_alpha
diff options
context:
space:
mode:
authorNeil Johnson <neil@matrix.org>2019-01-29 18:04:56 +0000
committerNeil Johnson <neil@matrix.org>2019-01-29 18:04:56 +0000
commite4bef9d470aa99cbb06b0a19fcafc5bd32008207 (patch)
tree5351f700240c376c0fbb9caaadbc6ffefd645e74 /tests/rest/client/v2_alpha
parentupdate to reflect broadening scope (diff)
downloadsynapse-e4bef9d470aa99cbb06b0a19fcafc5bd32008207.tar.xz
rework format of change password capability
Diffstat (limited to 'tests/rest/client/v2_alpha')
-rw-r--r--tests/rest/client/v2_alpha/test_capabilities.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rest/client/v2_alpha/test_capabilities.py b/tests/rest/client/v2_alpha/test_capabilities.py
index 62dbfa06b2..d3d43970fb 100644
--- a/tests/rest/client/v2_alpha/test_capabilities.py
+++ b/tests/rest/client/v2_alpha/test_capabilities.py
@@ -68,11 +68,11 @@ class CapabilitiesTestCase(unittest.HomeserverTestCase):
         self.assertEqual(channel.code, 200)
 
         # Test case where password is handled outside of Synapse
-        self.assertTrue(capabilities['m.change_password'])
+        self.assertTrue(capabilities['m.change_password']['enabled'])
         self.get_success(self.store.user_set_password_hash(user, None))
         request, channel = self.make_request("GET", self.url, access_token=access_token)
         self.render(request)
         capabilities = channel.json_body['capabilities']
 
         self.assertEqual(channel.code, 200)
-        self.assertFalse(capabilities['m.change_password'])
+        self.assertFalse(capabilities['m.change_password']['enabled'])