#NEWLINE# def test_constrained_to_url_install_same_url( script , data ) : #NEWLINE# #INDENT# to_install = data . src . join ( 'singlemodule' ) #NEWLINE# script . scratch_path . join ( 'constraints.txt' ) . write ( ( 'file://%s#egg=singlemodule' % to_install ) ) #NEWLINE# result = script . pip ( 'install' , '--no-index' , '-f' , data . find_links , '-c' , ( script . scratch_path / 'constraints.txt' ) , to_install ) #NEWLINE# assert ( 'Running setup.py install for singlemodule' in to_install . stdout )