def db_exists(name, user=None, host=None, port=None, maintenance_db=None,
              password=None, runas=None):

    databases = db_list(user=user, host=host, port=port,
                        maintenance_db=maintenance_db,
                        password=password, runas=runas)
    return name in databases
Test that exception gets passed back properly.
dataset/ETHPy150Open saltstack/salt/salt/modules/postgres.py/db_exists--crossover with--dataset/ETHPy150Open nii-cloud/dodai-compute/nova/tests/test_rpc_common.py/_BaseRpcTestCase.test_call_exception