summary refs log tree commit diff
path: root/tests/test_terms_auth.py
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2018-11-07 03:00:00 +1100
committerGitHub <noreply@github.com>2018-11-07 03:00:00 +1100
commite62f7f17b32fa51a818fdcfc756464692ddb9194 (patch)
treed34e06c6c32e0637bea8aa66bf516d419dce26b2 /tests/test_terms_auth.py
parentAdd config variables for enabling terms auth and the policy name (#4142) (diff)
downloadsynapse-e62f7f17b32fa51a818fdcfc756464692ddb9194.tar.xz
Remove some boilerplate in tests (#4156)
Diffstat (limited to 'tests/test_terms_auth.py')
-rw-r--r--tests/test_terms_auth.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_terms_auth.py b/tests/test_terms_auth.py
index 0b71c6feb9..9ecc3ef14f 100644
--- a/tests/test_terms_auth.py
+++ b/tests/test_terms_auth.py
@@ -23,7 +23,6 @@ from synapse.rest.client.v2_alpha.register import register_servlets
 from synapse.util import Clock
 
 from tests import unittest
-from tests.server import make_request
 
 
 class TermsTestCase(unittest.HomeserverTestCase):
@@ -92,7 +91,7 @@ class TermsTestCase(unittest.HomeserverTestCase):
 
         self.registration_handler.check_username = Mock(return_value=True)
 
-        request, channel = make_request(b"POST", self.url, request_data)
+        request, channel = self.make_request(b"POST", self.url, request_data)
         self.render(request)
 
         # We don't bother checking that the response is correct - we'll leave that to
@@ -110,7 +109,7 @@ class TermsTestCase(unittest.HomeserverTestCase):
                 },
             }
         )
-        request, channel = make_request(b"POST", self.url, request_data)
+        request, channel = self.make_request(b"POST", self.url, request_data)
         self.render(request)
 
         # We're interested in getting a response that looks like a successful