def test_legacy_format(script, data):
 script.pip('install', '-f', data.find_links, '--no-index', 'simple==1.0', 'simple2==3.0')
 result = script.pip('list', '--format=legacy')
 assert ('simple (1.0)' in result.stdout), str(result)
 assert ('simple2 (3.0)' in result.stdout), str(result)

def test_legacy_format ( script , data ) : script . pip ( 'install' , '-f' , data . find_links , '--no-index' , 'simple==1.0' , 'simple2==3.0' ) result = script . pip ( 'list' , '--format=legacy' ) assert ( 'simple (1.0)' in result . stdout ) , str ( result ) assert ( 'simple2 (3.0)' in result . stdout ) , str ( result )
test that legacy format .