summaryrefslogtreecommitdiff
path: root/tests/cache/liberal_backend.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cache/liberal_backend.py')
-rw-r--r--tests/cache/liberal_backend.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/cache/liberal_backend.py b/tests/cache/liberal_backend.py
new file mode 100644
index 0000000000..b72013c6a8
--- /dev/null
+++ b/tests/cache/liberal_backend.py
@@ -0,0 +1,10 @@
+from django.core.cache.backends.locmem import LocMemCache
+
+
+class LiberalKeyValidationMixin(object):
+ def validate_key(self, key):
+ pass
+
+class CacheClass(LiberalKeyValidationMixin, LocMemCache):
+ pass
+