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

def test_list_freeze ( script , data ) : script . pip ( 'install' , '-f' , data . find_links , '--no-index' , 'simple==1.0' , 'simple2==3.0' ) result = script . pip ( 'list' , '--format=freeze' ) assert ( 'simple==1.0' in result . stdout ) , str ( result ) assert ( 'simple2==3.0' in result . stdout ) , str ( result )
test freeze formatting of list command .