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

def test_local_flag ( script , data ) : script . pip ( 'install' , '-f' , data . find_links , '--no-index' , 'simple==1.0' ) result = script . pip ( 'list' , '--local' , '--format=legacy' ) assert ( 'simple (1.0)' in result . stdout )
test the behavior of --local flag in the list command .