summary refs log tree commit diff
path: root/tests/util
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-03-29 12:15:33 -0400
committerGitHub <noreply@github.com>2021-03-29 12:15:33 -0400
commit01dd90b0f08d1ffb36eb24282edc5db62a21170f (patch)
treee1b2983708614d3be8f70d79f480dae81d591c97 /tests/util
parentClarify that register_new_matrix_user is present also when installed via non-... (diff)
downloadsynapse-01dd90b0f08d1ffb36eb24282edc5db62a21170f.tar.xz
Add type hints to DictionaryCache and TTLCache. (#9442)
Diffstat (limited to 'tests/util')
-rw-r--r--tests/util/test_dict_cache.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/util/test_dict_cache.py b/tests/util/test_dict_cache.py
index 34fdc9a43a..2f41333f4c 100644
--- a/tests/util/test_dict_cache.py
+++ b/tests/util/test_dict_cache.py
@@ -27,7 +27,9 @@ class DictCacheTestCase(unittest.TestCase):
         key = "test_simple_cache_hit_full"
 
         v = self.cache.get(key)
-        self.assertEqual((False, set(), {}), v)
+        self.assertIs(v.full, False)
+        self.assertEqual(v.known_absent, set())
+        self.assertEqual({}, v.value)
 
         seq = self.cache.sequence
         test_value = {"test": "test_simple_cache_hit_full"}