def rename(src, dst):
    src = os.path.expanduser(src)
    dst = os.path.expanduser(dst)

    if not os.path.isabs(src):
        raise SaltInvocationError('File path must be absolute.')

    try:
        os.rename(src, dst)
        return True
    except OSError:
        raise CommandExecutionError(
            'Could not rename \'{0}\' to \'{1}\''.format(src, dst)
        )
    return False
Test if it lists installed Bower packages
dataset/ETHPy150Open saltstack/salt/salt/modules/file.py/rename--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/modules/bower_test.py/BowerTestCase.test_list_packages_success