def test_show(script):
 result = script.pip('show', 'pip')
 lines = result.stdout.splitlines()
 assert (len(lines) == 9)
 assert ('Name: pip' in lines)
 assert (('Version: %s' % __version__) in lines)
 assert any((line.startswith('Location: ') for line in lines))
 assert ('Requires: ' in lines)

def test_show ( script ) : result = script . pip ( 'show' , 'pip' ) lines = result . stdout . splitlines ( ) assert ( len ( lines ) == 9 ) assert ( 'Name: pip' in lines ) assert ( ( 'Version: %s' % __version__ ) in lines ) assert any ( ( line . startswith ( 'Location: ' ) for line in lines ) ) assert ( 'Requires: ' in lines )
test end to end test for show command .