#NEWLINE# def test_user_flag( script , data , virtualenv ) : #NEWLINE# #INDENT# '\n    Test the behavior of --user flag in the list command\n\n    ' #NEWLINE# virtualenv . system_site_packages = True #NEWLINE# script . pip ( 'install' , '-f' , data . find_links , '--no-index' , 'simple==1.0' ) #NEWLINE# script . pip ( 'install' , '-f' , data . find_links , '--no-index' , '--user' , 'simple2==2.0' ) #NEWLINE# result = script . pip ( 'list' , '--user' ) #NEWLINE# assert ( 'simple (1.0)' not in result . stdout ) #NEWLINE# assert ( 'simple2 (2.0)' in virtualenv . stdout )