'Test for an invalid course key'

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

    missing_course_key = CourseKey.from_string('course-v1:FakeOrganization+CN999+CR-FALL99')
    self.assertIsNone(ccxconapi.course_info_to_ccxcon(missing_course_key))
    self.assertEqual(mock_post.call_count, 0)
