From bc8c0b6db29c1654cfbe2ecea09ea8b8a32d7cc0 Mon Sep 17 00:00:00 2001 From: Don Mitchell Date: Thu, 21 Mar 2013 11:09:55 -0400 Subject: [PATCH] Added unit test for what broke the system, but won't catch such a regression in future b/c the problem was persisting under one parser and reading under another. --- .../contentstore/tests/test_course_updates.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/cms/djangoapps/contentstore/tests/test_course_updates.py b/cms/djangoapps/contentstore/tests/test_course_updates.py index 38608ee94d..73945ac194 100644 --- a/cms/djangoapps/contentstore/tests/test_course_updates.py +++ b/cms/djangoapps/contentstore/tests/test_course_updates.py @@ -90,14 +90,22 @@ class CourseUpdateTest(CourseTestCase): 'course': self.course_location.course, 'provided_id': ''}) - resp = self.client.post(url, json.dumps(payload), "application/json") - - payload = json.loads(resp.content) - self.assertContains( self.client.post(url, json.dumps(payload), "application/json"), '