def test_install_from_wheel_with_legacy(script, data):
 result = script.pip('install', 'script.wheel2a==0.1', '--no-index', ('--find-links=' + data.find_links), expect_error=False)
 legacy_file1 = (script.bin / 'testscript1.bat')
 legacy_file2 = (script.bin / 'testscript2')
 assert (legacy_file1 in result.files_created)
 assert (legacy_file2 in result.files_created)

def test_install_from_wheel_with_legacy ( script , data ) : result = script . pip ( 'install' , 'script.wheel2a==0.1' , '--no-index' , ( '--find-links=' + data . find_links ) , expect_error = False ) legacy_file1 = ( script . bin / 'testscript1.bat' ) legacy_file2 = ( script . bin / 'testscript2' ) assert ( legacy_file1 in result . files_created ) assert ( legacy_file2 in result . files_created )
test installing scripts .