MCPcopy
hub / github.com/django/django / test_nonexistent_alias

Method test_nonexistent_alias

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

Source from the content-addressed store, hash-verified

3114 self.assertIsNot(c[0], c[1])
3115
3116 def test_nonexistent_alias(self):
3117 msg = "The connection 'nonexistent' doesn't exist."
3118 with self.assertRaisesMessage(InvalidCacheBackendError, msg):
3119 caches["nonexistent"]
3120
3121 def test_nonexistent_backend(self):
3122 test_caches = CacheHandler(

Callers

nothing calls this directly

Calls 1

assertRaisesMessageMethod · 0.80

Tested by

no test coverage detected