def METHOD_NAME(self, mock_post):
    """
    Test for 500 error: a CCXConnServerError exception is raised
    """
    mock_response = mock.Mock()
    mock_response.status_code = 500
    mock_post.return_value = mock_response
    with pytest.raises(ccxconapi.CCXConnServerError):
        ccxconapi.course_info_to_ccxcon(self.course_key)