def METHOD_NAME(self, mock_post):
    """
    Test for status codes different from >= 500 and 201:
    The called function doesn't raise any exception and simply returns None.
    """
    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
        assert ccxconapi.course_info_to_ccxcon(self.course_key) is None