def test_cache_deactivated_remove_data(config_stub, tmpdir):
 config_stub.data = {'storage': {'cache-size': 1024}, 'general': {'private-browsing': True}}
 disk_cache = cache.DiskCache(str(tmpdir))
 url = QUrl('http://www.example.com/')
 assert (not disk_cache.remove(url))

def test_cache_deactivated_remove_data ( config_stub , tmpdir ) : config_stub . data = { 'storage' : { 'cache-size' : 1024 } , 'general' : { 'private-browsing' : True } } disk_cache = cache . DiskCache ( str ( tmpdir ) ) url = QUrl ( 'http://www.example.com/' ) assert ( not disk_cache . remove ( url ) )
test removing some data from a deactivated cache .