def test_path_info(monkeypatch):
 patches = {'config': (lambda : 'CONFIG PATH'), 'data': (lambda : 'DATA PATH'), 'system_data': (lambda : 'SYSTEM DATA PATH'), 'cache': (lambda : 'CACHE PATH'), 'download': (lambda : 'DOWNLOAD PATH'), 'runtime': (lambda : 'RUNTIME PATH')}
 for (attr, val) in patches.items():
  monkeypatch.setattr(('qutebrowser.utils.standarddir.' + attr), val)
 pathinfo = version._path_info()
 assert (pathinfo['config'] == 'CONFIG PATH')
 assert (pathinfo['data'] == 'DATA PATH')
 assert (pathinfo['system_data'] == 'SYSTEM DATA PATH')
 assert (pathinfo['cache'] == 'CACHE PATH')
 assert (pathinfo['download'] == 'DOWNLOAD PATH')
 assert (pathinfo['runtime'] == 'RUNTIME PATH')

def test_path_info ( monkeypatch ) : patches = { 'config' : ( lambda : 'CONFIG PATH' ) , 'data' : ( lambda : 'DATA PATH' ) , 'system_data' : ( lambda : 'SYSTEM DATA PATH' ) , 'cache' : ( lambda : 'CACHE PATH' ) , 'download' : ( lambda : 'DOWNLOAD PATH' ) , 'runtime' : ( lambda : 'RUNTIME PATH' ) } for ( attr , val ) in patches . items ( ) : monkeypatch . setattr ( ( 'qutebrowser.utils.standarddir.' + attr ) , val ) pathinfo = version . _path_info ( ) assert ( pathinfo [ 'config' ] == 'CONFIG PATH' ) assert ( pathinfo [ 'data' ] == 'DATA PATH' ) assert ( pathinfo [ 'system_data' ] == 'SYSTEM DATA PATH' ) assert ( pathinfo [ 'cache' ] == 'CACHE PATH' ) assert ( pathinfo [ 'download' ] == 'DOWNLOAD PATH' ) assert ( pathinfo [ 'runtime' ] == 'RUNTIME PATH' )
test _path_info() .