'Tests for Send-Receive - Receive Workflow'

def test_inv003_send_receive_items(self):

    user = 'admin'
    method = 'search'
    send_data = [('site_id', 'Timor-Leste    Red    Cross    Society    (CVTL)    National    Warehouse    (Warehouse)'), ('type', 'Internal    Shipment'), ('to_site_id', 'Lospalos    Warehouse    (Warehouse)'), ('sender_id', 'Beatriz    de    Carvalho'), ('recipient_id', 'Liliana    Otilia')]
    item_data = [[('send_inv_item_id', 'Blankets    -    Australian    Red    Cross', 'inv_widget'), ('quantity', '8')], [('send_inv_item_id', 'Jerry    Cans    -    Australian    Red    Cross', 'inv_widget'), ('quantity', '13')], [('send_inv_item_id', 'Kitchen    Sets    -    Australian    Red    Cross', 'inv_widget'), ('quantity', '4')]]
    recv_data = [['Blankets', '8'], ['Jerry    Cans', '13'], ['Kitchen    Sets', '4']]
    send_result = self.send(user, send_data)
    send_id = self.send_get_id(send_result)
    send_ref = self.send_get_ref(send_result)
    cnt = 0
    for data in item_data:
        item_result = self.track_send_item(user, send_id, data)
        recv_data[cnt].append(item_result['after'].records[0])
        cnt += 1
    self.send_shipment(user, send_id)
    self.recv_sent_shipment(method, user, send_ref, recv_data)
