def test_download_wheel(script, data):
 result = script.pip('download', '--no-index', '-f', data.packages, '-d', '.', 'meta')
 assert ((Path('scratch') / 'meta-1.0-py2.py3-none-any.whl') in result.files_created)
 assert ((script.site_packages / 'piptestpackage') not in result.files_created)

def test_download_wheel ( script , data ) : result = script . pip ( 'download' , '--no-index' , '-f' , data . packages , '-d' , '.' , 'meta' ) assert ( ( Path ( 'scratch' ) / 'meta-1.0-py2.py3-none-any.whl' ) in result . files_created ) assert ( ( script . site_packages / 'piptestpackage' ) not in result . files_created )
test using "pip download" to download a * .