|
|
|
@ -458,7 +458,7 @@ class AuthTestCase(unittest.TestCase): |
|
|
|
|
with self.assertRaises(AuthError) as e: |
|
|
|
|
yield self.auth.check_auth_blocking() |
|
|
|
|
self.assertEquals(e.exception.admin_uri, self.hs.config.admin_uri) |
|
|
|
|
self.assertEquals(e.exception.errcode, Codes.MAU_LIMIT_EXCEEDED) |
|
|
|
|
self.assertEquals(e.exception.errcode, Codes.RESOURCE_LIMIT_EXCEED) |
|
|
|
|
self.assertEquals(e.exception.code, 403) |
|
|
|
|
|
|
|
|
|
# Ensure does not throw an error |
|
|
|
@ -474,5 +474,5 @@ class AuthTestCase(unittest.TestCase): |
|
|
|
|
with self.assertRaises(AuthError) as e: |
|
|
|
|
yield self.auth.check_auth_blocking() |
|
|
|
|
self.assertEquals(e.exception.admin_uri, self.hs.config.admin_uri) |
|
|
|
|
self.assertEquals(e.exception.errcode, Codes.HS_DISABLED) |
|
|
|
|
self.assertEquals(e.exception.errcode, Codes.RESOURCE_LIMIT_EXCEED) |
|
|
|
|
self.assertEquals(e.exception.code, 403) |
|
|
|
|