'Set up the course and user context'

def setUp(self):

    super(CoursesRenderTest, self).setUp()
    store = modulestore()
    course_items = import_course_from_xml(store, self.user.id, TEST_DATA_DIR, ['toy'])
    course_key = course_items[0].id
    self.course = get_course_by_id(course_key)
    self.request = get_mock_request(UserFactory.create())
