'Test that an order in "paying" can successfully be retired'

def test_retire_order_paying(self):

    cart = Order.get_cart_for_user(user=self.user)
    CertificateItem.add_to_order(cart, self.course_key, self.cost, 'honor', currency='usd')
    cart.start_purchase()
    cart.retire()
    self.assertEqual(cart.status, 'defunct-paying')
    self.assertEqual(cart.orderitem_set.get().status, 'defunct-paying')
