def test_cache_get_nonexistent_data(config_stub, tmpdir):
 config_stub.data = {'storage': {'cache-size': 1024}, 'general': {'private-browsing': False}}
 disk_cache = cache.DiskCache(str(tmpdir))
 preload_cache(disk_cache, 'https://qutebrowser.org')
 assert (disk_cache.data(QUrl('http://qutebrowser.org')) is None)

def test_cache_get_nonexistent_data ( config_stub , tmpdir ) : config_stub . data = { 'storage' : { 'cache-size' : 1024 } , 'general' : { 'private-browsing' : False } } disk_cache = cache . DiskCache ( str ( tmpdir ) ) preload_cache ( disk_cache , 'https://qutebrowser.org' ) assert ( disk_cache . data ( QUrl ( 'http://qutebrowser.org' ) ) is None )
test querying some data that was never inserted .