def test_cache_deactivated_metadata_file(config_stub, tmpdir):
 config_stub.data = {'storage': {'cache-size': 1024}, 'general': {'private-browsing': True}}
 disk_cache = cache.DiskCache(str(tmpdir))
 assert (disk_cache.fileMetaData('foo') == QNetworkCacheMetaData())

def test_cache_deactivated_metadata_file ( config_stub , tmpdir ) : config_stub . data = { 'storage' : { 'cache-size' : 1024 } , 'general' : { 'private-browsing' : True } } disk_cache = cache . DiskCache ( str ( tmpdir ) ) assert ( disk_cache . fileMetaData ( 'foo' ) == QNetworkCacheMetaData ( ) )
test querying meta data file when cache is deactivated .