'Sets up the toy course in the modulestore and the request object.'

def setup_request_and_course(self, num_finds, num_sends):

    self.course_key = ToyCourseFactory.create().id
    self.chapter = 'Overview'
    chapter_url = ('%s/%s/%s' % ('/courses', self.course_key, self.chapter))
    factory = RequestFactory()
    self.request = factory.get(chapter_url)
    self.request.user = UserFactory()
    self.modulestore = self.store._get_modulestore_for_courselike(self.course_key)
    with self.modulestore.bulk_operations(self.course_key):
        with check_mongo_calls(num_finds, num_sends):
            self.toy_course = self.store.get_course(self.course_key, depth=2)
            self.field_data_cache = FieldDataCache.cache_for_descriptor_descendents(self.course_key, self.request.user, self.toy_course, depth=2)
