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