def test_show_with_files_from_wheel(script, data):
 wheel_file = data.packages.join('simple.dist-0.1-py2.py3-none-any.whl')
 script.pip('install', '--no-index', wheel_file)
 result = script.pip('show', '-f', 'simple.dist')
 lines = result.stdout.splitlines()
 assert ('Name: simple.dist' in lines)
 assert ('Cannot locate installed-files.txt' not in lines[6]), lines[6]
 assert re.search('Files:\\n(  .+\\n)+', result.stdout)

def test_show_with_files_from_wheel ( script , data ) : wheel_file = data . packages . join ( 'simple.dist-0.1-py2.py3-none-any.whl' ) script . pip ( 'install' , '--no-index' , wheel_file ) result = script . pip ( 'show' , '-f' , 'simple.dist' ) lines = result . stdout . splitlines ( ) assert ( 'Name: simple.dist' in lines ) assert ( 'Cannot locate installed-files.txt' not in lines [ 6 ] ) , lines [ 6 ] assert re . search ( 'Files:\\n(  .+\\n)+' , result . stdout )
test that a wheels files can be listed .