コード例 #1
0
 def test_parsing_introduction_segment(self):
     segment = "introduction"
     section = ""
     sub_section = ""
     fetch_content = FetchFromES()
     results = fetch_content.fetch_lesson_content_from_es(
         "What's the Weather like")
     parse_content = ParseESResults(results, segment)
     segment_content = parse_content.parse_segment_content()
     self.assertIsNotNone(segment_content)
コード例 #2
0
 def test_parsing_lesson_segment_and_section(self):
     segment = "lessons"
     lesson = "What's the weather like"
     section = "Introducing the Read Aloud"
     sub_section = ""
     fetch_content = FetchFromES()
     results = fetch_content.fetch_lesson_content_from_es(
         "What's Weather like")
     parse_content = ParseESResults(results, segment, lesson, section)
     section_content = parse_content.parse_section_content("sections")
     self.assertIsNotNone(section_content)
コード例 #3
0
 def test_parsing_introduction_segment_and_section(self):
     segment = "introduction"
     lesson = "What's the weather like"
     section = "Recommended resources"
     sub_section = ""
     fetch_content = FetchFromES()
     results = fetch_content.fetch_lesson_content_from_es(
         "What's Weather like")
     parse_content = ParseESResults(results, segment, lesson, section)
     section_content = parse_content.parse_section_content("sections")
     self.assertIsNotNone(section_content)
コード例 #4
0
 def test_parsing_lesson_segment_and_additional_section(self):
     segment = "lessons"
     lesson = "What's the weather like"
     section = "PRIMARY FOCUS OF LESSON"
     sub_section = ""
     fetch_content = FetchFromES()
     results = fetch_content.fetch_lesson_content_from_es(
         "What's Weather like")
     parse_content = ParseESResults(results, segment, lesson, section)
     section_content = parse_content.parse_section_content(
         "additional_sections")
     self.assertIsNotNone(section_content)
コード例 #5
0
 def __init__(self, params, context):
     self.params = params
     self.context = context
     fetch_content = FetchFromES()
     self.results = fetch_content.fetch_lesson_content_from_es(
         "What's the Weather like")
コード例 #6
0
 def test_es_fetch_content(self):
     es_db = FetchFromES()
     results = es_db.fetch_lesson_content_from_es("What's the Weather Like")
     self.assertIsNotNone(results)
コード例 #7
0
 def __init__(self):
     fetch_content = FetchFromES()
     self.results = fetch_content.fetch_lesson_content_from_es(
         "What's Weather like")