def test_local_flag(script, data):
    script.pip('install', '-f', data.find_links, '--no-index', 'simple==1.0')
    result = script.pip('list', '--local')
    assert 'simple (1.0)' in result.stdout
Test the behavior of --local flag in the list command
dataset/ETHPy150Open pypa/pip/tests/functional/test_list.py/test_local_flag