def test_cleanup_req_satisifed_no_name(script, data):
 dist = data.packages.join('parent-0.1.tar.gz')
 script.pip('install', dist)
 script.pip('install', dist)
 build = (script.venv_path / 'build')
 assert (not exists(build)), ('unexpected build/ dir exists: %s' % build)
 script.assert_no_temp()

def test_cleanup_req_satisifed_no_name ( script , data ) : dist = data . packages . join ( 'parent-0.1.tar.gz' ) script . pip ( 'install' , dist ) script . pip ( 'install' , dist ) build = ( script . venv_path / 'build' ) assert ( not exists ( build ) ) , ( 'unexpected build/ dir exists: %s' % build ) script . assert_no_temp ( )
test cleanup when req is already satisfied .