(self, mask_modules)
| 217 | |
| 218 | @pytest.mark.masked_modules('pylibmc', 'memcache') |
| 219 | def test_no_implementations(self, mask_modules): |
| 220 | with conftest.reset_modules('celery.backends.cache'): |
| 221 | from celery.backends import cache |
| 222 | cache._imp = [None] |
| 223 | with pytest.raises(ImproperlyConfigured): |
| 224 | cache.get_best_memcache() |
| 225 | |
| 226 | def test_cached(self): |
| 227 | with self.mock_pylibmc(): |