summary refs log tree commit diff
diff options
context:
space:
mode:
authordklimpel <5740567+dklimpel@users.noreply.github.com>2020-03-09 19:57:04 +0100
committerdklimpel <5740567+dklimpel@users.noreply.github.com>2020-03-09 19:57:04 +0100
commit50ea178c201588b5e6b3f93e1af56aef0b4e8368 (patch)
treea0052f1cd5bb7be50298eaf5de98e23eb0a8c5be
parentadd tests (diff)
downloadsynapse-50ea178c201588b5e6b3f93e1af56aef0b4e8368.tar.xz
lint
-rw-r--r--tests/rest/client/v2_alpha/test_account.py18
1 files changed, 8 insertions, 10 deletions
diff --git a/tests/rest/client/v2_alpha/test_account.py b/tests/rest/client/v2_alpha/test_account.py
index ac9f200de3..e178a53335 100644
--- a/tests/rest/client/v2_alpha/test_account.py
+++ b/tests/rest/client/v2_alpha/test_account.py
@@ -438,7 +438,9 @@ class ThreepidEmailRestTestCase(unittest.HomeserverTestCase):
         )
         self.render(request)
         self.assertEqual(400, int(channel.result["code"]), msg=channel.result["body"])
-        self.assertEqual("3PID changes disabled on this server", channel.json_body["error"])
+        self.assertEqual(
+            "3PID changes disabled on this server", channel.json_body["error"]
+        )
 
         # Get user
         request, channel = self.make_request(
@@ -466,10 +468,7 @@ class ThreepidEmailRestTestCase(unittest.HomeserverTestCase):
         request, channel = self.make_request(
             "POST",
             b"account/3pid/delete",
-            {
-                "medium": "email",
-                "address": self.email
-            },
+            {"medium": "email", "address": self.email},
             access_token=self.user_id_tok,
         )
         self.render(request)
@@ -503,16 +502,15 @@ class ThreepidEmailRestTestCase(unittest.HomeserverTestCase):
         request, channel = self.make_request(
             "POST",
             b"account/3pid/delete",
-            {
-                "medium": "email",
-                "address": self.email
-            },
+            {"medium": "email", "address": self.email},
             access_token=self.user_id_tok,
         )
         self.render(request)
 
         self.assertEqual(400, int(channel.result["code"]), msg=channel.result["body"])
-        self.assertEqual("3PID changes disabled on this server", channel.json_body["error"])
+        self.assertEqual(
+            "3PID changes disabled on this server", channel.json_body["error"]
+        )
 
         # Get user
         request, channel = self.make_request(