summary refs log tree commit diff
path: root/tests/storage/test__base.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/storage/test__base.py')
-rw-r--r--tests/storage/test__base.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/storage/test__base.py b/tests/storage/test__base.py
index fb306cb784..55d22f665a 100644
--- a/tests/storage/test__base.py
+++ b/tests/storage/test__base.py
@@ -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]