Ejemplo n.º 1
0
def test_send_refund_transfer_contains_balance_proof():
    recipient = make_address()
    transfer = make_transfer()
    message_identifier = 1
    channel_identifier = make_channel_identifier()
    event = SendRefundTransfer(
        recipient=recipient,
        channel_identifier=channel_identifier,
        message_identifier=message_identifier,
        transfer=transfer,
    )

    assert hasattr(event, 'balance_proof')
    assert SendRefundTransfer.from_dict(event.to_dict()) == event
Ejemplo n.º 2
0
def test_send_refund_transfer_contains_balance_proof():
    recipient = factories.make_address()
    transfer = factories.create(factories.LockedTransferUnsignedStateProperties())
    message_identifier = 1
    channel_identifier = factories.make_channel_identifier()
    event = SendRefundTransfer(
        recipient=recipient,
        channel_identifier=channel_identifier,
        message_identifier=message_identifier,
        transfer=transfer,
    )

    assert hasattr(event, "balance_proof")
    assert SendRefundTransfer.from_dict(event.to_dict()) == event