'Returns a mock course object with a tabs attribute.'

def get_course_with_tabs(self, tabs=None):

    if (tabs is None):
        tabs = []
    course = collections.namedtuple('MockCourse', ['tabs'])
    if isinstance(tabs, basestring):
        course.tabs = self.get_tab_type_dicts(tabs)
    else:
        course.tabs = tabs
    return course
