def test_show_with_files_not_found(script, data):
 editable = data.packages.join('SetupPyUTF8')
 script.pip('install', '-e', editable)
 result = script.pip('show', '-f', 'SetupPyUTF8')
 lines = result.stdout.splitlines()
 assert (len(lines) == 11)
 assert ('Name: SetupPyUTF8' in lines)
 assert ('Version: 0.0.0' in lines)
 assert any((line.startswith('Location: ') for line in lines))
 assert ('Requires: ' in lines)
 assert ('Files:' in lines)
 assert ('Cannot locate installed-files.txt' in lines)

def test_show_with_files_not_found ( script , data ) : editable = data . packages . join ( 'SetupPyUTF8' ) script . pip ( 'install' , '-e' , editable ) result = script . pip ( 'show' , '-f' , 'SetupPyUTF8' ) lines = result . stdout . splitlines ( ) assert ( len ( lines ) == 11 ) assert ( 'Name: SetupPyUTF8' in lines ) assert ( 'Version: 0.0.0' in lines ) assert any ( ( line . startswith ( 'Location: ' ) for line in lines ) ) assert ( 'Requires: ' in lines ) assert ( 'Files:' in lines ) assert ( 'Cannot locate installed-files.txt' in lines )
test for show command with installed files listing enabled and installed-files .