'Check that orders that have already been retired noop when the method
is called on them again.'

@ddt.data('defunct-paying', 'defunct-cart')
def test_retire_order_already_retired(self, status):

    cart = Order.get_cart_for_user(user=self.user)
    item = CertificateItem.add_to_order(cart, self.course_key, self.cost, 'honor', currency='usd')
    cart.status = item.status = status
    cart.save()
    item.save()
    cart.retire()
    self.assertEqual(cart.status, status)
    self.assertEqual(item.status, status)
