def test_cleanup_after_install(script, data):
 script.pip('install', '--no-index', ('--find-links=%s' % data.find_links), 'simple')
 build = (script.venv_path / 'build')
 src = (script.venv_path / 'src')
 assert (not exists(build)), ('build/ dir still exists: %s' % build)
 assert (not exists(src)), ('unexpected src/ dir exists: %s' % src)
 script.assert_no_temp()

def test_cleanup_after_install ( script , data ) : script . pip ( 'install' , '--no-index' , ( '--find-links=%s' % data . find_links ) , 'simple' ) build = ( script . venv_path / 'build' ) src = ( script . venv_path / 'src' ) assert ( not exists ( build ) ) , ( 'build/ dir still exists: %s' % build ) assert ( not exists ( src ) ) , ( 'unexpected src/ dir exists: %s' % src ) script . assert_no_temp ( )
test clean up after installing a package .