def test_get_missing_key(cache):
    'Fail to retrieve missing item from cache.'
    with pytest.raises(KeyError):
        cache.get('key')
Fail to retrieve missing item from cache.
def test_get_missing_key(cache):
    
    with pytest.raises(KeyError):
        cache.get('key')