'Same as test_post_list_wrong_master_course,
but different ways to test the wrong master_course_id'

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

    self.course.enable_ccx = False
    self.mstore.update_item(self.course, self.coach.id)
    data = {'master_course_id': self.master_course_key_str}
    resp = self.client.post(self.list_url, data, format='json', HTTP_AUTHORIZATION=getattr(self, auth_attr))
    self.expect_error(status.HTTP_403_FORBIDDEN, 'ccx_not_enabled_for_master_course', resp)
    self.course.enable_ccx = True
    self.mstore.update_item(self.course, self.coach.id)
    with mock.patch('courseware.courses.get_course_by_id', autospec=True) as mocked:
        mocked.return_value.id.deprecated = True
        resp = self.client.post(self.list_url, data, format='json', HTTP_AUTHORIZATION=getattr(self, auth_attr))
    self.expect_error(status.HTTP_400_BAD_REQUEST, 'deprecated_master_course_id', resp)
