import pytest
from sanic_jwt.cache import is_cached
from sanic_jwt import exceptions


def test_cache_is_not_running():
    with pytest.raises(exceptions.LoopNotRunning):
        assert is_cached("_request") is not None

import pytest
from sanic_jwt.cache import is_cached
from sanic_jwt import exceptions


def test_cache_is_not_running():
    with pytest.raises(exceptions.LoopNotRunning):
        assert is_cached("_request") is not None
