def test_cache_nonexistent_metadata_file(config_stub, tmpdir):
 config_stub.data = {'storage': {'cache-size': 1024}, 'general': {'private-browsing': False}}
 disk_cache = cache.DiskCache(str(tmpdir))
 cache_file = disk_cache.fileMetaData('nosuchfile')
 assert (not cache_file.isValid())

def test_cache_nonexistent_metadata_file ( config_stub , tmpdir ) : config_stub . data = { 'storage' : { 'cache-size' : 1024 } , 'general' : { 'private-browsing' : False } } disk_cache = cache . DiskCache ( str ( tmpdir ) ) cache_file = disk_cache . fileMetaData ( 'nosuchfile' ) assert ( not cache_file . isValid ( ) )
test querying nonexistent meta data file from activated cache .