'Returns true if the current course and user have a notes tab, false otherwise.'

def has_notes_tab(self, course, user):

    request = RequestFactory().request()
    request.user = user
    all_tabs = get_course_tab_list(request, course)
    return any([(tab.name == u'My    Notes') for tab in all_tabs])
