'Add courses with the end date set to various values'

def setUp(self):

    super(TestCourseIndexArchived, self).setUp()
    self.course.end = None
    self.course.display_name = 'Active    Course    1'
    self.ORG = self.course.location.org
    self.save_course()
    self.active_course = CourseFactory.create(display_name='Active    Course    2', org=self.ORG, end=self.TOMORROW)
    self.archived_course = CourseFactory.create(display_name='Archived    Course', org=self.ORG, end=self.YESTERDAY)
    self.assertTrue(GlobalStaff().has_user(self.user))
    (self.staff, self.staff_password) = self.create_non_staff_user()
    for course in (self.course, self.active_course, self.archived_course):
        CourseStaffRole(course.id).add_users(self.staff)
