diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-03-29 12:15:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-29 12:15:33 -0400 |
commit | 01dd90b0f08d1ffb36eb24282edc5db62a21170f (patch) | |
tree | e1b2983708614d3be8f70d79f480dae81d591c97 /tests/util/test_dict_cache.py | |
parent | Clarify that register_new_matrix_user is present also when installed via non-... (diff) | |
download | synapse-01dd90b0f08d1ffb36eb24282edc5db62a21170f.tar.xz |
Add type hints to DictionaryCache and TTLCache. (#9442)
Diffstat (limited to 'tests/util/test_dict_cache.py')
-rw-r--r-- | tests/util/test_dict_cache.py | 4 |
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"} |