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
评论列表
文章目录