def test_create_new_monetary_account(self):
"""
Tests the creation of a new monetary account. This account will be
deleted after test exited with code 0.
This test has no assertion as of its testing to see if the code runs
without errors
"""
create_map = {
MonetaryAccountBank.FIELD_CURRENCY: self._FIELD_CURRENCY,
MonetaryAccountBank.FIELD_DESCRIPTION:
self._MONETARY_ACCOUNT_PREFIX + token_hex()
}
monetary_account_id = MonetaryAccountBank.create(self._API_CONTEXT,
create_map,
self._USER_ID).value
update_map = {
MonetaryAccountBank.FIELD_STATUS: self._FIELD_STATUS,
MonetaryAccountBank.FIELD_SUB_STATUS: self._FIELD_SUB_STATUS,
MonetaryAccountBank.FIELD_REASON: self._FIELD_REASON,
MonetaryAccountBank.FIELD_REASON_DESCRIPTION:
self._FIELD_REASON_DESCRIPTION,
}
MonetaryAccountBank.update(self._API_CONTEXT, update_map, self._USER_ID,
monetary_account_id)
评论列表
文章目录