'Test for status codes different from >= 500 and 201:
The called function doesn\'t raise any exception and simply returns None.'

@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_other_status_codes(self, mock_post):

    mock_response = mock.Mock()
    for status_code in (204, 300, 304, 400, 404):
        mock_response.status_code = status_code
        mock_post.return_value = mock_response
        self.assertIsNone(ccxconapi.course_info_to_ccxcon(self.course_key))
