(self, mask_modules)
| 254 | |
| 255 | @pytest.mark.masked_modules('pylibmc') |
| 256 | def test_memcache_bytes_key(self, mask_modules): |
| 257 | with self.mock_memcache(): |
| 258 | with conftest.reset_modules('celery.backends.cache'): |
| 259 | from celery.backends import cache |
| 260 | cache._imp = [None] |
| 261 | task_id, result = str_to_bytes(uuid()), 42 |
| 262 | b = cache.CacheBackend(backend='memcache', app=self.app) |
| 263 | b.store_result(task_id, result, state=states.SUCCESS) |
| 264 | assert b.get_result(task_id) == result |
| 265 | |
| 266 | def test_pylibmc_unicode_key(self): |
| 267 | with conftest.reset_modules('celery.backends.cache'): |
nothing calls this directly
no test coverage detected