summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorNeil Johnson <neil@fragile.org.uk>2018-08-18 12:31:08 +0100
committerNeil Johnson <neil@fragile.org.uk>2018-08-18 12:31:08 +0100
commitba1fbf7d5bd8807e892de6de4bc82cb5e49581bd (patch)
tree0a75f7ff827a4ecee62198d0775459681ad79a92 /tests
parentclean up, no functional changes (diff)
downloadsynapse-ba1fbf7d5bd8807e892de6de4bc82cb5e49581bd.tar.xz
special case server_notices_mxid
Diffstat (limited to 'tests')
-rw-r--r--tests/api/test_auth.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/api/test_auth.py b/tests/api/test_auth.py

index 022d81ce3e..c4cbff4e8d 100644 --- a/tests/api/test_auth.py +++ b/tests/api/test_auth.py
@@ -476,3 +476,11 @@ class AuthTestCase(unittest.TestCase): self.assertEquals(e.exception.admin_uri, self.hs.config.admin_uri) self.assertEquals(e.exception.errcode, Codes.RESOURCE_LIMIT_EXCEED) self.assertEquals(e.exception.code, 403) + + @defer.inlineCallbacks + def test_server_notices_mxid_special_cased(self): + self.hs.config.hs_disabled = True + user = "@user:server" + self.hs.config.server_notices_mxid = user + self.hs.config.hs_disabled_message = "Reason for being disabled" + yield self.auth.check_auth_blocking(user)