'check if the sales invoice item serial numbers and the delivery note items
serial numbers are same'

def test_serial_numbers_against_delivery_note(self):

    from erpnext.stock.doctype.stock_entry.test_stock_entry import make_serialized_item
    from erpnext.stock.doctype.delivery_note.test_delivery_note import create_delivery_note
    from erpnext.stock.doctype.delivery_note.delivery_note import make_sales_invoice
    from erpnext.stock.doctype.serial_no.serial_no import get_serial_nos
    se = make_serialized_item()
    serial_nos = get_serial_nos(se.get(u'items')[0].serial_no)
    dn = create_delivery_note(item=se.get(u'items')[0].item_code, serial_no=serial_nos[0])
    dn.submit()
    si = make_sales_invoice(dn.name)
    si.save()
    self.assertEquals(si.get(u'items')[0].serial_no, dn.get(u'items')[0].serial_no)
