'Setup a dummy course-like object with a tabs field that can be
accessed via attribute lookup.'

def setUp(self):

    super(CourseTabTest, self).setUp()
    self.course = CourseFactory.create()
    self.user = UserFactory()
    CourseEnrollmentFactory.create(user=self.user, course_id=self.course.id)
