def test_cache_disable(): cache = Cache() assert cache.enabled is True cache.enabled = False cache.put("item", "args", timeout=3) assert cache.get("args") == None # Check it's there assert cache.get("some", kw="args") is None
def test_cache_disable(): cache = Cache() assert cache.enabled == True cache.enabled = False cache.put("item", 'args', timeout=3) assert cache.get('args') == None # Check it's there assert cache.get('some', kw='args') == None
def test_cache_disable(): cache = Cache() assert cache.enabled is True cache.enabled = False cache.put("item", "args", timeout=3) assert cache.get("args") is None # Check it's there assert cache.get("some", kw="args") is None