self.assert_course_creation_failed('There is already a course defined with the same organization, course number, and course run.')
self.assert_course_creation_failed('There is already a course defined with the same organization, course number, and course run. Please change at least one field to be unique.')
@@ -1007,7 +1007,7 @@ class ContentStoreTest(ModuleStoreTestCase):
...
@@ -1007,7 +1007,7 @@ class ContentStoreTest(ModuleStoreTestCase):
self.course_data['display_name']='Robot Super Course Two'
self.course_data['display_name']='Robot Super Course Two'
self.course_data['run']='2013_Summer'
self.course_data['run']='2013_Summer'
self.assert_course_creation_failed('There is already a course defined with the same organization and course number.')
self.assert_course_creation_failed('There is already a course defined with the same organization and course number. Please change at least one field to be unique.')
returnJsonResponse({'ErrMsg':'There is already a course defined with the same organization, course number, and course run.'})
returnJsonResponse(
{
'ErrMsg':_('There is already a course defined with the same organization, course number, and course run. Please change at least one field to be unique.'),
returnJsonResponse({'ErrMsg':'There is already a course defined with the same organization and course number.'})
returnJsonResponse({'ErrMsg':_('There is already a course defined with the same organization and course number. Please change at least one field to be unique.')})
# instantiate the CourseDescriptor and then persist it
# instantiate the CourseDescriptor and then persist it