test_record_properties.py 文件源码

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

项目:python-netsgiro 作者: otovo 项目源码 文件源码
def test_transaction_amount_item_3_for_ocr_giro_transactions(tn, text):
    original = netsgiro.records.TransactionAmountItem3(
        service_code=netsgiro.ServiceCode.OCR_GIRO,
        transaction_type=(
            netsgiro.TransactionType.PURCHASE_WITH_TEXT),
        transaction_number=tn,
        text=text,
    )

    ocr = original.to_ocr()
    record = netsgiro.records.TransactionAmountItem3.from_string(ocr)

    assert record.transaction_number == tn
    assert record.text == original.text
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号