def test_cleanup_after_install_from_local_directory(script, data):
 to_install = data.packages.join('FSPkg')
 script.pip('install', to_install, expect_error=False)
 build = (script.venv_path / 'build')
 src = (script.venv_path / 'src')
 assert (not exists(build)), ('unexpected build/ dir exists: %s' % build)
 assert (not exists(src)), ('unexpected src/ dir exist: %s' % src)
 script.assert_no_temp()

def test_cleanup_after_install_from_local_directory ( script , data ) : to_install = data . packages . join ( 'FSPkg' ) script . pip ( 'install' , to_install , expect_error = False ) build = ( script . venv_path / 'build' ) src = ( script . venv_path / 'src' ) assert ( not exists ( build ) ) , ( 'unexpected build/ dir exists: %s' % build ) assert ( not exists ( src ) ) , ( 'unexpected src/ dir exist: %s' % src ) script . assert_no_temp ( )
test clean up after installing from a local directory .