@pytest.mark.network
def test_show_with_all_files(script):
 script.pip('install', 'initools==0.2')
 result = script.pip('show', '--files', 'initools')
 lines = result.stdout.splitlines()
 assert ('Cannot locate installed-files.txt' not in lines[6]), lines[6]
 assert re.search('Files:\\n(  .+\\n)+', result.stdout)

@ pytest . mark . network def test_show_with_all_files ( script ) : script . pip ( 'install' , 'initools==0.2' ) result = script . pip ( 'show' , '--files' , 'initools' ) lines = result . stdout . splitlines ( ) assert ( 'Cannot locate installed-files.txt' not in lines [ 6 ] ) , lines [ 6 ] assert re . search ( 'Files:\\n(  .+\\n)+' , result . stdout )
test listing all files in the show command .