summary refs log tree commit diff
path: root/tests/storage
diff options
context:
space:
mode:
authorDirk Klimpel <5740567+dklimpel@users.noreply.github.com>2020-12-17 11:43:37 +0100
committerGitHub <noreply@github.com>2020-12-17 10:43:37 +0000
commit06006058d7bf6744078109875cd27f47197aeafa (patch)
tree914debf5e03d197db2055cda4c004c4750dcf810 /tests/storage
parentAdd a maximum size for well-known lookups. (#8950) (diff)
downloadsynapse-06006058d7bf6744078109875cd27f47197aeafa.tar.xz
Make search statement in List Room and User Admin API case-insensitive (#8931)
Diffstat (limited to 'tests/storage')
-rw-r--r--tests/storage/test_main.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/storage/test_main.py b/tests/storage/test_main.py
index 7e7f1286d9..e9e3bca3bf 100644
--- a/tests/storage/test_main.py
+++ b/tests/storage/test_main.py
@@ -48,3 +48,10 @@ class DataStoreTestCase(unittest.TestCase):
 
         self.assertEquals(1, total)
         self.assertEquals(self.displayname, users.pop()["displayname"])
+
+        users, total = yield defer.ensureDeferred(
+            self.store.get_users_paginate(0, 10, name="BC", guests=False)
+        )
+
+        self.assertEquals(1, total)
+        self.assertEquals(self.displayname, users.pop()["displayname"])