summary refs log tree commit diff
path: root/tests/api
diff options
context:
space:
mode:
authorNeil Johnson <neil@fragile.org.uk>2018-08-18 14:39:45 +0100
committerNeil Johnson <neil@fragile.org.uk>2018-08-18 14:39:45 +0100
commite07970165f852ccbc4542f1aaf0fd1b2bc54b973 (patch)
treeb78cc9c059e146354da27b9466fd1d261219ec8c /tests/api
parentspecial case server_notices_mxid (diff)
downloadsynapse-e07970165f852ccbc4542f1aaf0fd1b2bc54b973.tar.xz
rename error code
Diffstat (limited to 'tests/api')
-rw-r--r--tests/api/test_auth.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/api/test_auth.py b/tests/api/test_auth.py
index c4cbff4e8d..ed960090c4 100644
--- a/tests/api/test_auth.py
+++ b/tests/api/test_auth.py
@@ -458,7 +458,7 @@ class AuthTestCase(unittest.TestCase):
         with self.assertRaises(ResourceLimitError) 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.RESOURCE_LIMIT_EXCEED)
+        self.assertEquals(e.exception.errcode, Codes.RESOURCE_LIMIT_EXCEEDED)
         self.assertEquals(e.exception.code, 403)
 
         # Ensure does not throw an error
@@ -474,7 +474,7 @@ class AuthTestCase(unittest.TestCase):
         with self.assertRaises(ResourceLimitError) 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.RESOURCE_LIMIT_EXCEED)
+        self.assertEquals(e.exception.errcode, Codes.RESOURCE_LIMIT_EXCEEDED)
         self.assertEquals(e.exception.code, 403)
 
     @defer.inlineCallbacks