def METHOD_NAME(self):
    profile = ProfileFactory()
    account_event_1 = AccountEventFactory(
        body=json.dumps({"capabilities": ["capability_1"], "isActive": True, "changeTime": 1}),
        event_type=AccountEvent.SUBSCRIPTION_STATE_CHANGE,
        status=AccountEvent.UNPROCESSED,
        profile=profile,
    )
    process_event_subscription_state_change(account_event_1.id)
    account_event_1.refresh_from_db()
    self.assertEqual(account_event_1.status, AccountEvent.PROCESSED)
    account_event_2 = AccountEventFactory(
        body=json.dumps({"capabilities": ["capability_1"], "isActive": True, "changeTime": 3}),
        event_type=AccountEvent.SUBSCRIPTION_STATE_CHANGE,
        status=AccountEvent.UNPROCESSED,
        profile=profile,
    )
    process_event_subscription_state_change(account_event_2.id)
    account_event_2.refresh_from_db()
    self.assertEqual(account_event_2.status, AccountEvent.PROCESSED)
    account_event_3 = AccountEventFactory(
        body=json.dumps(
            {"capabilities": ["capability_1"], "isActive": False, "changeTime": 2}
        ),
        event_type=AccountEvent.SUBSCRIPTION_STATE_CHANGE,
        status=AccountEvent.UNPROCESSED,
        profile=profile,
    )
    process_event_subscription_state_change(account_event_3.id)
    account_event_3.refresh_from_db()
    self.assertEqual(account_event_3.status, AccountEvent.IGNORED)