MCPcopy Create free account
hub / github.com/celery/celery / test_as_uri_one_server

Method test_as_uri_one_server

t/unit/backends/test_cache.py:206–209  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

204 assert self.tb.as_uri() == 'memory:///'
205
206 def test_as_uri_one_server(self):
207 backend = 'memcache://127.0.0.1:11211/'
208 b = CacheBackend(backend=backend, app=self.app)
209 assert b.as_uri() == backend
210
211 def test_as_uri_multiple_servers(self):
212 backend = 'memcache://127.0.0.1:11211;127.0.0.2:11211;127.0.0.3/'

Callers

nothing calls this directly

Calls 2

as_uriMethod · 0.95
CacheBackendClass · 0.90

Tested by

no test coverage detected