def METHOD_NAME(self):
    payment = SubmissionPaymentFactory.create(status=PaymentStatus.started)
    plugin = register["ogone-legacy"]
    # regular apply
    plugin.apply_status(payment, OgoneStatus.payment_requested)
    self.assertEqual(payment.status, PaymentStatus.completed)
    # set a final status registered
    payment.status = PaymentStatus.registered
    payment.save()
    # ignores when try to race/overwrite to completed again
    plugin.apply_status(payment, OgoneStatus.payment_requested)
    # still registered
    self.assertEqual(payment.status, PaymentStatus.registered)