'Helper method to register the enterprise course enrollment API endpoint for a failure.'

def mock_enterprise_course_enrollment_post_api_failure(self):

    httpretty.register_uri(method=httpretty.POST, uri=self.get_enterprise_url('enterprise-course-enrollment'), body='{}', content_type='application/json', status=500)
