def test_cache_size_deactivated(config_stub, tmpdir):
 config_stub.data = {'storage': {'cache-size': 1024}, 'general': {'private-browsing': True}}
 disk_cache = cache.DiskCache(str(tmpdir))
 assert (disk_cache.cacheSize() == 0)

def test_cache_size_deactivated ( config_stub , tmpdir ) : config_stub . data = { 'storage' : { 'cache-size' : 1024 } , 'general' : { 'private-browsing' : True } } disk_cache = cache . DiskCache ( str ( tmpdir ) ) assert ( disk_cache . cacheSize ( ) == 0 )
confirm that the cache size returns 0 when deactivated .