From c47673bb8b45953561c154e4892b8ecfda8989e8 Mon Sep 17 00:00:00 2001 From: Will Daly Date: Tue, 9 Sep 2014 16:32:52 -0400 Subject: [PATCH] Add a test for the course ID merchant defined field data --- lms/djangoapps/verify_student/tests/test_views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lms/djangoapps/verify_student/tests/test_views.py b/lms/djangoapps/verify_student/tests/test_views.py index 29d1d1d808..14c7013b14 100644 --- a/lms/djangoapps/verify_student/tests/test_views.py +++ b/lms/djangoapps/verify_student/tests/test_views.py @@ -675,6 +675,9 @@ class TestCreateOrder(ModuleStoreTestCase): data = json.loads(response.content) 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): # Verify the student so we don't need to submit photos self._verify_student()