Debian Codegraph @

ansible_collections/community/general/tests/unit/plugins/cache/test_memcached.py

raw
1 # Copyright (c) 2012-2015, Michael DeHaan <[email protected]>
2 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
3 # SPDX-License-Identifier: GPL-3.0-or-later
4
5 # Make coding more python3-ish
6 from __future__ import annotations
7
8 import pytest
9
10 pytest.importorskip("memcache")
11
12 from ansible.plugins.loader import cache_loader
13
14 from ansible_collections.community.general.plugins.cache.memcached import CacheModule as MemcachedCache
15
16
17 def test_memcached_cachemodule():
18 assert isinstance(cache_loader.get("community.general.memcached"), MemcachedCache)