def METHOD_NAME(self, mock_post):
    """
    Test for happy path
    """
    mock_response = mock.Mock()
    mock_response.status_code = 201
    mock_post.return_value = mock_response
    ccxconapi.course_info_to_ccxcon(self.course_key)
    assert mock_post.call_count == 1
    k_args, k_kwargs = mock_post.call_args
    # no args used for the call
    assert k_args == tuple()
    assert k_kwargs.get('url') ==\
           parse.urljoin(self.course.ccx_connector, ccxconapi.CCXCON_COURSEXS_URL)
    # second call with different status code
    mock_response.status_code = 200
    mock_post.return_value = mock_response
    ccxconapi.course_info_to_ccxcon(self.course_key)
    assert mock_post.call_count == 2
    k_args, k_kwargs = mock_post.call_args
    # no args used for the call
    assert k_args == tuple()
    assert k_kwargs.get('url') ==\
           parse.urljoin(self.course.ccx_connector, ccxconapi.CCXCON_COURSEXS_URL)