MCPcopy
hub / github.com/celery/celery / test_as_uri_one_server

Method test_as_uri_one_server

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

Source from the content-addressed store, hash-verified

133 assert self.tb.as_uri() == 'memory:///'
134
135 def test_as_uri_one_server(self):
136 backend = 'memcache://127.0.0.1:11211/'
137 b = CacheBackend(backend=backend, app=self.app)
138 assert b.as_uri() == backend
139
140 def test_as_uri_multiple_servers(self):
141 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