def test_layered_cache_remove_at_depth():
    'Remove key that only exists at depth in LayeredCache.'
    caches = [ftrack_api.cache.MemoryCache(), ftrack_api.cache.MemoryCache()]
    cache = ftrack_api.cache.LayeredCache(caches)
    caches[1].set('key', 'value')
    cache.remove('key')
    assert (not cache.keys())
Remove key that only exists at depth in LayeredCache.
def test_layered_cache_remove_at_depth():
    
    caches = [ftrack_api.cache.MemoryCache(), ftrack_api.cache.MemoryCache()]
    cache = ftrack_api.cache.LayeredCache(caches)
    caches[1].set('key', 'value')
    cache.remove('key')
    assert (not cache.keys())