def test_cache_deactivated_metadata(config_stub, tmpdir):
 config_stub.data = {'storage': {'cache-size': 1024}, 'general': {'private-browsing': True}}
 url = 'http://qutebrowser.org'
 disk_cache = cache.DiskCache(str(tmpdir))
 assert (disk_cache.metaData(QUrl(url)) == QNetworkCacheMetaData())

def test_cache_deactivated_metadata ( config_stub , tmpdir ) : config_stub . data = { 'storage' : { 'cache-size' : 1024 } , 'general' : { 'private-browsing' : True } } url = 'http://qutebrowser.org' disk_cache = cache . DiskCache ( str ( tmpdir ) ) assert ( disk_cache . metaData ( QUrl ( url ) ) == QNetworkCacheMetaData ( ) )
test querying metadata() on not activated cache .