@pytest.mark.network
def test_uptodate_columns_flag(script, data):
 script.pip('install', '-f', data.find_links, '--no-index', 'simple==1.0', 'simple2==3.0')
 script.pip('install', '-e', 'git+https://github.com/pypa/pip-test-package.git#egg=pip-test-package')
 result = script.pip('list', '-f', data.find_links, '--no-index', '--uptodate', '--format=columns')
 assert ('Package' in result.stdout)
 assert ('Version' in result.stdout)
 assert ('Location' in result.stdout)
 assert ('pip-test-package (0.1.1,' not in result.stdout)
 assert ('pip-test-package 0.1.1' in result.stdout), str(result)
 assert ('simple2          3.0' in result.stdout), str(result)

@ pytest . mark . network def test_uptodate_columns_flag ( script , data ) : script . pip ( 'install' , '-f' , data . find_links , '--no-index' , 'simple==1.0' , 'simple2==3.0' ) script . pip ( 'install' , '-e' , 'git+https://github.com/pypa/pip-test-package.git#egg=pip-test-package' ) result = script . pip ( 'list' , '-f' , data . find_links , '--no-index' , '--uptodate' , '--format=columns' ) assert ( 'Package' in result . stdout ) assert ( 'Version' in result . stdout ) assert ( 'Location' in result . stdout ) assert ( 'pip-test-package (0.1.1,' not in result . stdout ) assert ( 'pip-test-package 0.1.1' in result . stdout ) , str ( result ) assert ( 'simple2          3.0' in result . stdout ) , str ( result )
test the behavior of --uptodate --format=columns flag in the list command .