def event(self, type, quantity=None):
        event = ShippingEvent.objects.create(order=self.order, event_type=type)
        if quantity is None:
            quantity = self.line.quantity
        ShippingEventQuantity.objects.create(
            event=event, line=self.line, quantity=quantity)
Split align into (valign_type, valign_amount).  Raise exception err
dataset/ETHPy150Open django-oscar/django-oscar/tests/integration/order/model_tests.py/LineTests.event--crossover with--dataset/ETHPy150Open AnyMesh/anyMesh-Python/example/urwid/decoration.py/normalize_valign