Commit c47673bb by Will Daly Committed by Diana Huang

Add a test for the course ID merchant defined field data

parent 4f67f0da
...@@ -675,6 +675,9 @@ class TestCreateOrder(ModuleStoreTestCase): ...@@ -675,6 +675,9 @@ class TestCreateOrder(ModuleStoreTestCase):
data = json.loads(response.content) data = json.loads(response.content)
self.assertEqual(data['override_custom_receipt_page'], "http://testserver/shoppingcart/postpay_callback/") self.assertEqual(data['override_custom_receipt_page'], "http://testserver/shoppingcart/postpay_callback/")
# Verify that the course ID is included in "merchant-defined data"
self.assertEqual(data['merchant_defined_data1'], unicode(self.course.id))
def test_create_order_set_donation_amount(self): def test_create_order_set_donation_amount(self):
# Verify the student so we don't need to submit photos # Verify the student so we don't need to submit photos
self._verify_student() self._verify_student()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment