'Test the creation of a CCX, but with duplicated modules'

@ddt.data(*AUTH_ATTRS)
def test_post_list_duplicated_modules(self, auth_attr):

    chapters = self.master_course_chapters[0:1]
    duplicated_chapters = (chapters * 3)
    data = {'master_course_id': self.master_course_key_str, 'max_students_allowed': 111, 'display_name': 'CCX    Test    Title', 'coach_email': self.coach.email, 'course_modules': duplicated_chapters}
    resp = self.client.post(self.list_url, data, format='json', HTTP_AUTHORIZATION=getattr(self, auth_attr))
    self.assertEqual(resp.status_code, status.HTTP_201_CREATED)
    self.assertEqual(resp.data.get('course_modules'), chapters)
