def test_remove(cache):
    'Remove item from cache.'
    cache.set('key', 'value')
    cache.remove('key')
    with pytest.raises(KeyError):
        cache.get('key')
Remove item from cache.
def test_remove(cache):
    
    cache.set('key', 'value')
    cache.remove('key')
    with pytest.raises(KeyError):
        cache.get('key')