def has_shipping_event_occurred(self, event_type, quantity=None):
        if not quantity:
            quantity = self.quantity
        return self.shipping_event_quantity(event_type) == quantity
Test parsing of fact expressions
dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/apps/order/abstract_models.py/AbstractLine.has_shipping_event_occurred--crossover with--dataset/ETHPy150Open sahana/eden/modules/unit_tests/s3/s3timeplot.py/FactParserTests.testFactExpressionParsing