'Helper function for verifying the ccx tab.'

def check_ccx_tab(self, course, user):

    request = RequestFactory().request()
    request.user = user
    all_tabs = get_course_tab_list(request, course)
    return any(((tab.type == 'ccx_coach') for tab in all_tabs))
