MCPcopy
hub / github.com/django/django / test_nonexistent_backend

Method test_nonexistent_backend

tests/cache/tests.py:3121–3134  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3119 caches["nonexistent"]
3120
3121 def test_nonexistent_backend(self):
3122 test_caches = CacheHandler(
3123 {
3124 "invalid_backend": {
3125 "BACKEND": "django.nonexistent.NonexistentBackend",
3126 },
3127 }
3128 )
3129 msg = (
3130 "Could not find backend 'django.nonexistent.NonexistentBackend': "
3131 "No module named 'django.nonexistent'"
3132 )
3133 with self.assertRaisesMessage(InvalidCacheBackendError, msg):
3134 test_caches["invalid_backend"]
3135
3136 def test_all(self):
3137 test_caches = CacheHandler(

Callers

nothing calls this directly

Calls 2

CacheHandlerClass · 0.90
assertRaisesMessageMethod · 0.80

Tested by

no test coverage detected