@@ -0,0 +1,2039 @@
+from netsgiro import records%0A%0A%0Adef test_transmission_start():%0A    record = records.TransmissionStart.from_string(%0A        'NY00001055555555100008100008080000000000'%0A        '0000000000000000000000000000000000000000'%0A    )%0A%0A    assert record.service_code == '00'%0A    assert record.transmission_type == '00'%0A    assert record.record_type == '10'%0A%0A    assert record.data_transmitter == '55555555'%0A    assert record.transmission_number == '1000081'%0A    assert record.data_recipient == '00008080'%0A%0A%0Adef test_transmission_end():%0A    record = records.TransmissionEnd.from_string(%0A        'NY00008900000006000000220000000000000060'%0A        '0170604000000000000000000000000000000000'%0A    )%0A%0A    assert record.service_code == '00'%0A    assert record.transmission_type == '00'%0A    assert record.record_type == '89'%0A%0A    assert record.num_transactions == '00000006'%0A    assert record.num_records == '00000022'%0A    assert record.total_amount == '00000000000000600'%0A    assert record.nets_date == '170604'%0A%0A%0Adef test_assignment_start():%0A    record = records.AssignmentStart.from_string(%0A        'NY21002000000000040000868888888888800000'%0A        '0000000000000000000000000000000000000000'%0A    )%0A%0A    assert record.service_code == '21'%0A    assert record.assignment_type == '00'%0A    assert record.record_type == '20'%0A%0A    assert record.agreement_id == '000000000'%0A    assert record.assignment_number == '4000086'%0A    assert record.assignment_account == '88888888888'%0A%0A%0Adef test_assignment_end():%0A    record = records.AssignmentEnd.from_string(%0A        'NY21008800000006000000200000000000000060'%0A        '0170604170604000000000000000000000000000'%0A    )%0A%0A    assert record.service_code == '21'%0A    assert record.assignment_type == '00'%0A    assert record.record_type == '88'%0A%0A    assert record.num_transactions == '00000006'%0A    assert record.num_records == '00000020'%0A    assert record.total_amount == '00000000000000600'%0A    assert record.nets_date == '170604'%0A    assert record.nets_date_earliest == '170604'%0A    assert record.nets_date_latest == '000000'%0A

Test record parsing independently