mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-31 17:38:36 -04:00
Use cache.pop() instead of a separate membership test + del []
This commit is contained in:
parent
27080698e7
commit
f53fcbce97
2 changed files with 8 additions and 2 deletions
|
@ -66,6 +66,13 @@ class CacheDecoratorTestCase(unittest.TestCase):
|
|||
|
||||
self.assertEquals(callcount[0], 2)
|
||||
|
||||
def test_invalidate_missing(self):
|
||||
@cached()
|
||||
def func(self, key):
|
||||
return key
|
||||
|
||||
func.invalidate("what")
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def test_max_entries(self):
|
||||
callcount = [0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue