'Test for 500 error: a CCXConnServerError exception is raised'

@mock.patch('requests_oauthlib.oauth2_session.OAuth2Session.fetch_token', fetch_token_mock)
@mock.patch('requests_oauthlib.oauth2_session.OAuth2Session.post')
def test_course_info_to_ccxcon_500_error(self, mock_post):

    mock_response = mock.Mock()
    mock_response.status_code = 500
    mock_post.return_value = mock_response
    with self.assertRaises(ccxconapi.CCXConnServerError):
        ccxconapi.course_info_to_ccxcon(self.course_key)
