@with_environment
def test_get_home_dir_3():
 env['HOME'] = HOME_TEST_DIR
 home_dir = path.get_home_dir(True)
 nt.assert_equal(home_dir, os.path.realpath(env['HOME']))

@ with_environment def test_get_home_dir_3 ( ) : env [ 'HOME' ] = HOME_TEST_DIR home_dir = path . get_home_dir ( True ) nt . assert_equal ( home_dir , os . path . realpath ( env [ 'HOME' ] ) )
get_home_dir() uses $home if set .