test_monetary_account_bank.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:sdk_python 作者: bunq 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号