#NEWLINE# @ pytest . mark . network #NEWLINE# def test_uptodate_flag( script , data ) : #NEWLINE# #INDENT# '\n    Test the behavior of --uptodate flag in the list command\n\n    ' #NEWLINE# script . pip ( 'install' , '-f' , data . find_links , '--no-index' , 'simple==1.0' , 'simple2==3.0' ) #NEWLINE# script . pip ( 'install' , '-e' , 'git+https://github.com/pypa/pip-test-package.git#egg=pip-test-package' ) #NEWLINE# result = script . pip ( 'list' , '-f' , data . find_links , '--no-index' , '--uptodate' , expect_stderr = True ) #NEWLINE# assert ( 'simple (1.0)' not in result . stdout ) #NEWLINE# assert ( 'pip-test-package (0.1.1,' in result . stdout ) #NEWLINE# assert ( 'simple2 (3.0)' in result . stdout ) , str ( script )