(self, mask_modules)
| 208 | |
| 209 | @pytest.mark.masked_modules('pylibmc') |
| 210 | def test_memcache(self, mask_modules): |
| 211 | with self.mock_memcache(): |
| 212 | with conftest.reset_modules('celery.backends.cache'): |
| 213 | from celery.backends import cache |
| 214 | cache._imp = [None] |
| 215 | assert (cache.get_best_memcache()[0]().__module__ == |
| 216 | 'memcache') |
| 217 | |
| 218 | @pytest.mark.masked_modules('pylibmc', 'memcache') |
| 219 | def test_no_implementations(self, mask_modules): |
nothing calls this directly
no test coverage detected